- 表达式:
(^1(((00|11)*(01|10)(00|11)*(01|10)(00|11)*)*|(00|11)*)$)|(^0((((11|00)*(10|01)){2})*(11|00)*(10|01)(11|00)*)$)
- 测试用例:
1110010101010011010111001010011
010010110100100010101
000111
111
0110111
001010101
001
1
0101010010101010001010010101010010100
101010100101001001010
- 测试结果:
true
true
false
true
true
false
true
true
true
true
网友评论