Home
Tester
Reference
About
Pattern
([0-9]+) (\w+)
Input
We have
3 apples
and
2 bananas
We have 3 apples and 2 bananas
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...
$2 ($1)
Click the
context
tab to see replacements.
Regex Info
Table
Context
Split List
2
matches found in about
1
millisecond.
Show Permalink
Permalink
Index
Position
Matched String
Replacement
$1
$2
0
8
3 apples
apples (3)
3
apples
1
21
2 bananas
bananas (2)
2
bananas
We have
apples (3)
and
bananas (2)
We have
3
apples
and
2
bananas
empty string