Technical References - [regex]

[regex] is a full implementation of grep

[regex] is a full implementation of grep, starting from version 8.1 of WebDNA. The older implementation of [grep] remains for backward compatibility for its simple search and replace capabilities, however, [regex] is a better choice.

Syntax is the same as for [grep], except that it does not have the limitations of our implementation of [grep]

Some specific operators used by [regex] will be interpreted by WebDNA, like "%2B" or "%26" for instance. In this case, it is safer to [url][/url] the operator like in the following



Example:
[text]value=\b0%2B[/text]
[regex search=[value]&replace=]080.010.001.305[/regex]


or
[text]value=\b0+[/text]
[regex search=[url][value][/url]&replace=]080.010.001.305[/regex]


will both show 80.10.1.305

DOWNLOAD WEBDNA NOW!

Top Articles:

Tips and Tricks

A list of user-submitted tips ...

[biotype]

BioType is a behavioral biometrics WebDNA function based on ADGS research and development (from version 8...

AWS Raw WebDNA LAMP-Plus WebServer

Amazon Web Services (AWS) README for Machine Image ID...

WebDNA Modules

A list of the currently available modules...

WebDNA reference

A list of all WebDNA instructions...

F.A.Q

A compilation of some user's questions...

Related Readings:

[if]

This context displays HTML or executes WebDNA conditionally only if the expression is true...

[xmlparse]

Enable the WebDNA programmer to input XML data into a WebDNA variable...

[clearlineitems]

Remove all line items from the specified shopping cart...

[random]

will display a random number...

[writefile]

[writefile] functions allows you to perform a wide variety of tasks...

[thisurl]

[thisurl] displays the URL of the current page...