Enter your regex: \d*
Enter input string to search: a2
I found the text "" starting at index 0 and ending at index 0.
I found the text "2" starting at index 1 and ending at index 2.
I found the text "" starting at index 2 and ending at index 2.
Console内容拷贝如下:
Enter your regex: foo
Enter input string to search: foo
I found the text "foo" starting at index 0 and ending at index 3.
Enter your regex: foo
Enter input string to search: u are a big fool;
I found the text "foo" starting at index 12 and ending at index 15.
Enter your regex: foo
Enter input string to search: foo id foo;
I found the text "foo" starting at index 0 and ending at index 3.
I found the text "foo" starting at index 7 and ending at index 10.
Enter your regex: cat.
Enter input string to search: cats
I found the text "cats" starting at index 0 and ending at index 4.
Enter your regex: cat.
Enter input string to search: cat
No match found.
Enter your regex: \Qcat.\E
Enter input string to search: cats
No match found.
Enter your regex: cat\Q.\E
Enter input string to search: cats
No match found.
Enter your regex: [0-4[6-8]]
Enter input string to search: 5
No match found.
Enter your regex: [0-4[6-8]]
Enter input string to search: 1
I found the text "1" starting at index 0 and ending at index 1.
Enter your regex: 51
Enter input string to search:
No match found.
Enter your regex: [0-4[6-8]]
Enter input string to search: 51
I found the text "1" starting at index 1 and ending at index 2.
Enter your regex: [0-9&&[3-5]]
Enter input string to search: 3
I found the text "3" starting at index 0 and ending at index 1.
Enter your regex: [0-9&&[3-5]]
Enter input string to search: 33
No match found.
Enter your regex: [0-9&&[3-5]]
Enter input string to search: 4
No match found.
Enter your regex: [0-9&&[345]]
Enter input string to search: 333
I found the text "3" starting at index 0 and ending at index 1.
I found the text "3" starting at index 1 and ending at index 2.
I found the text "3" starting at index 2 and ending at index 3.
Enter your regex: [0-4[6-8]]
Enter input string to search: 7
I found the text "7" starting at index 0 and ending at index 1.
Enter your regex: [0-4[6-8]]
Enter input string to search: 777
I found the text "7" starting at index 0 and ending at index 1.
I found the text "7" starting at index 1 and ending at index 2.
I found the text "7" starting at index 2 and ending at index 3.
Enter your regex: [0-4[678]]
Enter input string to search: 777
I found the text "7" starting at index 0 and ending at index 1.
I found the text "7" starting at index 1 and ending at index 2.
I found the text "7" starting at index 2 and ending at index 3.
Enter your regex: [0-4[678]]
Enter input string to search: 666777888
I found the text "6" starting at index 0 and ending at index 1.
I found the text "6" starting at index 1 and ending at index 2.
I found the text "6" starting at index 2 and ending at index 3.
I found the text "7" starting at index 3 and ending at index 4.
I found the text "7" starting at index 4 and ending at index 5.
I found the text "7" starting at index 5 and ending at index 6.
I found the text "8" starting at index 6 and ending at index 7.
I found the text "8" starting at index 7 and ending at index 8.
I found the text "8" starting at index 8 and ending at index 9.
Enter your regex: [0-9&&[3-5]]
Enter input string to search: 444
I found the text "4" starting at index 0 and ending at index 1.
I found the text "4" starting at index 1 and ending at index 2.
I found the text "4" starting at index 2 and ending at index 3.
Enter your regex: [0-9&&[3-5]]
Enter input string to search: 333
I found the text "3" starting at index 0 and ending at index 1.
I found the text "3" starting at index 1 and ending at index 2.
I found the text "3" starting at index 2 and ending at index 3.
Enter your regex: [0-9&&[3-5]]
Enter input string to search: 444
I found the text "4" starting at index 0 and ending at index 1.
I found the text "4" starting at index 1 and ending at index 2.
I found the text "4" starting at index 2 and ending at index 3.
Enter your regex: [0-9&&[3-5]]
Enter input string to search: 4
I found the text "4" starting at index 1 and ending at index 2.