find us on facebook!
 

Regular expressions in the replacement mechanism

By using regular expressions you can do search and replacement more effectively.

Just imagine that necessary information is split into parts in some text and you should gather it.

See an example: an email protection by JavaScript as a simple function: ShowMail("user","domain")

Ordinary search and replacement by a sub string won't hep you. But using RegExp you will easily solve the problem:

Expression: ShowMail\("([^"]+)","([^"]+)"\)
Replacement: \1@\2

Note:
Please be careful when writing regular expressions because they considerably increase the processor load. It's better to test your expression in the program regexbuddy or its analogues before applying it. For regular expressions use the POSIX standard.

If you cannot write regular expressions please contact our technical support. Such a service is available for EmEx 3 customers only.



 Restrictions by URL. Why is it necessary? | Course description | How to check a dynamic replacement rule? 
   
 
(c) EMMA Labs, 2024 | No Spam Policy