我需要一个正则表达式匹配一个字符串:
0-9和空格火柴:
11 11111 1 1 1 1 1 1 1 11 1 1 1 1 1 1 1 1 1 1
无匹配:
1 has only one digit 11111 has space at the end 11111 has space at beginning 12 digits are different 11: has other character
我知道每个要求的正则表达式.这样我就会使用4个正则表达式测试.我们可以在一个正则表达式中完成吗?