in reply to REGEX: muliple search and replace

I recently asked about the efficiency of a search/replace routine I use (see my sub definition) and it is more or less exactly what tilly suggests above, minus the quotemeta() which I don't use because I define my own tags.

It's fast and simple to use; give it a try!

Replies are listed 'Best First'.
RE (tilly) 2: REGEX: muliple search and replace
by tilly (Archbishop) on Nov 15, 2000 at 06:02 UTC
    If you know that your tags have no characters special to the RE, then you can drop quotemeta. If not, then you need it.

    Even if I don't need it, I would probably use it just for protection against future developers messing up.