[Grep search=regexp&replace=regexp]Any Text[/Grep]

New in 4.0
Replaces text based on a regular expression. This popular UNIX utility has been adapted to WebDNA.

Example (normally you would put the following text into a .tpl file on your server and use a web browser to link to it):

[Grep search=([0-9]*-[0-9]*)&replace=<b>\1</b>]Hi, my phone number is 555-1234, and I'd like you to call me[/Grep]

In the example above, the displayed text will be

Hi, my phone number is <b>555-1234</b>, and I'd like you to call me
 Parameter  Description
(Required) Regular expression that defines what text to search for in the body of the context
(Required) Regular expression that defines how to output the resulting text