From string const STR = ‘qwbewrbbeqqbbbweebbbbqee’; [“b”, “bb”, “BBB “,” BBBB “] (B)
A.str.match(/b+/g)
Copy the code
B.str.match(/b*/g)
Copy the code
C.s. tr. Match ({1, 4} / g/b)Copy the code
D.s tr. Match ({1, 5} / g/b)Copy the code
Resolution:
+ means that b occurs at least once
* indicates that B can occur once or more than once
{n,m} indicates that b occurs at least n times and at most m times