How to achieve the ability of mod_rewrite in finding and replacing a text editor?

RewriteRule ^/?page/?([a-zA-Z0-9,-]+)$ $1.php [L]

Can a text editor find and replace a string like apache mod_rewrite does? I mean, for example, in a text file, I would like to enclose all email addresses in double qoutes,

by entering [a-zA-Z_]@[a-zA-Z-]+\.[a-zA-Z.]+in the field "find what"
and "$1"in the field "replace to", I get all email addresses with literally $ 1, but I wanted the original value to just be added and continued by double qoutes?

or is there an easier approach to the problem?

+3
source share
1 answer

-. $1, , \1. " ". , TextPad & . regex, () .

+1

Source: https://habr.com/ru/post/1717797/


All Articles