ES Search & Replace documentation Matching Modes & Regex

Matching mode controls how ES Search & Replace decides whether text is a match.

Plain text (case-insensitive)

Use this for normal replacements when letter case should not matter. For example, a search for lorem can match Lorem, LOREM and lorem.

Case-sensitive

Use this when the text must match the exact letter case entered in Search for.

Whole word

Use this when the search value must appear as a standalone word rather than as part of a longer word. Word boundaries are Unicode-aware and treat letters, numbers and the underscore as word characters.

Regular expression (advanced)

Regex mode accepts a complete PHP PCRE expression, including delimiters.

/old-(domain)\.test/i

Important Regex behavior:

  • The expression must be valid PCRE syntax.
  • Expressions that match an empty value or produce zero-length matches are rejected.
  • Replace with is literal text. Capture references such as $1 are not expanded.
  • A field larger than 1 MB is rejected for Regex processing.
  • More than 1,000 Regex matches in one field are rejected.
  • Regex Preview checks only the configured maximum number of items per selected content type.

Search and replacement length limits

  • Search for: maximum 500 characters.
  • Replace with: maximum 5,000 characters.

For the normal non-Regex modes, the search and replacement values must be different.

For broad Regex operations, narrow the scope first with content type, state, language, category or menu filters.

Next: Safety Limits & Permissions.