Home
Tester
Reference
About
Pattern
^(.+?)(?:#(\d+))?\r?$
Input
ABC#99999
9ABC#8
9ABC
9ABC#
ABC#99999 9ABC#8 9ABC 9ABC#
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
4
matches found in about
6
milliseconds.
Show Permalink
Permalink
Index
Position
Matched String
$1
$2
0
0
ABC#99999
ABC
99999
1
11
9ABC#8
9ABC
8
2
19
9ABC
9ABC
empty string
3
25
9ABC#
9ABC#
empty string
ABC#99999
9ABC#8
9ABC
9ABC#
empty string
ABC
99999
whitespace
9ABC
8
whitespace
9ABC
whitespace
9ABC#
empty string