Regex tester
Pattern
Input
{capital?} has a bridge for {people?}
Options
Replacement
Click the context tab to see replacements.
2 matches found in about 3 milliseconds.
IndexPositionMatched StringReplacement$1
00{capital?}capital_DENcapital
128{people?}people_DENpeople
capital_DEN has a bridge for people_DEN
  1. empty string
  2. capital
  3. has a bridge for
  4. people
  5. empty string