Home
Tester
Reference
About
Pattern
FOO(.*?)(?:/FOO(.*))?$
Input
PC1-
FOO1234567
PC2-
FOO1234567/FOO98765
PC1-FOO1234567 PC2-FOO1234567/FOO98765
Options
Ignore Case
Ignore Whitespace
Explicit Capture
Culture Invariant
Singleline
Multiline
Right To Left
ECMA Script
Start from position:
Max matches to find:
Replacement
Replace matches with...
Click the
context
tab to see replacements.
Regex Info
Table
Context
Split List
2
matches found in about
8
milliseconds.
Show Permalink
Permalink
Index
Position
Matched String
$1
$2
0
4
FOO1234567
1234567
empty string
1
20
FOO1234567/FOO98765
1234567
98765
PC1-
FOO1234567
PC2-
FOO1234567/FOO98765
PC1-
1234567
PC2-
1234567
98765
empty string