DevGizmo

Find & Replace

Search and replace text using plain string matching or regular expressions.

About the Find and Replace Tool

The DevGizmo Find and Replace tool lets you search through any block of text and replace matches instantly — all in your browser, with no data ever sent to a server. Whether you are cleaning up a configuration file, bulk-editing log output, or transforming data exported from a spreadsheet, this tool handles it in seconds.

Paste your text into the input area, type what you want to find, type the replacement, then click Replace First to change just the first match or Replace All to change every occurrence at once. A live match count updates as you type so you always know how many occurrences are present before committing.

Plain Mode vs Regex Mode

In plain mode the find string is treated as a literal sequence of characters. Special characters like ., *, and ? are matched literally, not as regex operators.

In regex mode the find field accepts a full JavaScript regular expression pattern. This enables powerful transformations such as matching any digit with \d+, capturing groups for back-references in the replacement ($1, $2), or anchoring matches to line starts with ^. If your pattern is invalid, a clear error message is shown rather than crashing.

Search Options

  • Case sensitive — when enabled, the search distinguishes between uppercase and lowercase letters. Disabled by default so that searching for hello also matches Hello and HELLO.
  • Whole word — wraps the pattern in word-boundary assertions so that searching for cat does not match inside concatenate. Useful for replacing variable names without affecting substrings.
  • Replace All vs Replace First — Replace First stops after the first match; Replace All substitutes every occurrence in a single pass.