Replaces text based on a regular expression.
numero = 238[grep search=([0-9]*-[0-9]*)&replace=<strong>\1</strong>]Hi, my phone number is 555-1234, and I'd like you to call me[/grep]In the example above, the displayed text will beHi, my phone number is 555-1234, and I'd like you to call me
| search | (Required) Regular expression that defines what text to search for in the body of the context |
| replace | (Required) Regular expression that defines how to output the resulting text |
IgnoreCase | (Optional) ignores case sensitivity while performing the grep function |
[grep search=usa&replace=USA&ignorecase=T]I was born in the usAI was born in the uSaI was born in the Usa[/grep]Results:I was born in the USAI was born in the USAI was born in the USAThe following example removes html tags
[grep search=(<[a-z]*>[^<>]*<\/[a-z]*>|<[a-z]*>)&replace=]<script> remove the code 1 that's here</script> 1but not here<br> <hr><script> remove the code 2 that's here</script> 2but not here<br> <hr><script> remove the code 3 that's here</script> 3but not here<br> <hr>[/grep]Results:1but not here 2but not here 3but not here [grep search=regexp&replace=regexp]Any Text[/grep]
[grep search=([0-9]*-[0-9]*)&replace=<strong>\1</strong>]Hi, my phone number is 555-1234, and I'd like you to call me[/grep]
| search | (Required) Regular expression that defines what text to search for in the body of the context |
| replace | (Required) Regular expression that defines how to output the resulting text |
IgnoreCase | (Optional) ignores case sensitivity while performing the grep function |
[grep search=usa&replace=USA&ignorecase=T]
I was born in the usA
I was born in the uSa
I was born in the Usa
[/grep]
[grep search=(<[a-z]*>[^<>]*<\/[a-z]*>|<[a-z]*>)&replace=]
<script> remove the code 1 that's here</script> 1but not here<br> <hr>
<script> remove the code 2 that's here</script> 2but not here<br> <hr>
<script> remove the code 3 that's here</script> 3but not here<br> <hr>
[/grep]
DOWNLOAD WEBDNA NOW!
A list of the currently available modules...
WebDNA reference...
[biotype]BioType is a behavioral biometrics WebDNA function based on ADGS research and development (from version 8...
Tips and TricksA list of user-submitted tips ...
AWS Raw WebDNA LAMP-Plus WebServerAmazon Web Services (AWS) README for Machine Image ID...
Download WebDNA ApplicationsWebDNA applications...
Extracts middle portion of the text between any two strings...
[exclusivelock]Prevents other threads from simultaneously accessing a group of databases...
[countchars]Counts the number of letters inside the context...
[tcpsend]A powerful feature that sends text to a TCP server program on a remote machine...
[setmimeheader]Causes WebDNA to add a new MIME header to the outgoing HTML...
Implement BioTypeHere is the JavaScript code that captures the keystroke dynamics of a demo user and how to make WebDNA analyze it...