Home > front end >  Regular expressions, 12 # 4, 12 # 5 how to use regular matching the 12 # 3 # 4 # 5?
Regular expressions, 12 # 4, 12 # 5 how to use regular matching the 12 # 3 # 4 # 5?

Time:11-05

12 # 4, 12 # 5 how to use regular matching the 12 # 3 # 4 # 5?
How do you write this format of regular

CodePudding user response:

/^ 12 # [3-9] $/
Test begin with 12 # to middle [3-9] a at the end of the string in the middle

CodePudding user response:

Regular is simple is the premise of clear requirements,
12 # 3 # 4 # 5 often is that part of the change in this string?? And behind the # is a number?
It is best to say a few examples and say which part to match

CodePudding user response:

The rule of completely don't understand your description, 12 # 3 # 4 # 5 middle what is law? If only a fixed, indexOf fix, without regular...