Template:Regex/doc

Do a regex match or replace

Usage
Note: regex is a regular expression as defined by php.

Match
return  if matched, return empty string if failed.

Replace
Replaces the given pattern within the string by replacement. If no replacement occurs, return unnamed parameter 4 (empty string by default).