Technical References - [regex]

[regex] is a full implementation of grep

numero = 1011
interpreted = N
texte = [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 [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:

Download WebDNA Applications

WebDNA applications...

WebDNA Modules

A list of the currently available modules...

F.A.Q

A compilation of some user's questions...

Technical Change History

This Technical Change History provides a reverse chronological list of WebDNA changes...

Tips and Tricks

A list of user-submitted tips ...

WebDNA reference

...

Related Readings:

[protect]

...

[xmlnodesattributes]

This context is used to iterate the attributes of a specific XML node...

[thisurl]

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

[listvariables]

Lists all the text and/or math variables which have been set earlier on a page...

[referrer]

Displays the URL of the referring page...

[scope]

Explicitly define a block of WebDNA code that has a separate variable space...