DevToolBox

Regular Expression Bulk Replace Tool

Find and replace text using regular expressions with capture group support

Input Text

Characters: 44 | Lines: 3

Pattern & Replacement

Use $1, $2, etc. for capture groups, $& for full match

Examples

Capture Groups

  • • $1, $2... - Capture group references
  • • $& - Full match
  • • $` - Before match
  • • $' - After match
  • • () - Capturing group
  • • (?:) - Non-capturing group

Output

Characters: 0 | Lines: 1

Regex Pattern

/Hello (\w+)/g

Common Patterns

  • \d - Digit
  • \w - Word character
  • \s - Whitespace
  • [a-z] - Lowercase letter
  • + - One or more
  • * - Zero or more
  • ? - Zero or one
  • ^ - Start of line
  • $ - End of line

Use Cases

  • • Text formatting and cleanup
  • • Data transformation
  • • Code refactoring
  • • Log file processing
  • • Batch text editing