Regex tester
Pattern
Input
We have 3 apples and 2 bananas
Options
Replacement
Click the context tab to see replacements.
2 matches found in about 0 milliseconds.
IndexPositionMatched StringReplacement$1$2
083 applesapples (3)3apples
1212 bananasbananas (2)2bananas
We have apples (3) and bananas (2)
  1. We have
  2. 3
  3. apples
  4. and
  5. 2
  6. bananas
  7. empty string