Re: Escaping special characters for regular expressions

2002-02-28 Thread Rob Roudebush
Wouldn't single quotes do the trick? Curtis Poe <[EMAIL PROTECTED]> wrote: --- W P wrote: > i don't want to just escape those characters. they were merely examples. i > was hoping maybe there was some built-in way to escape ALL the characters > that mean anything to regular expressions. Well,

Re: Escaping special characters for regular expressions

2002-02-28 Thread Curtis Poe
--- W P <[EMAIL PROTECTED]> wrote: > i don't want to just escape those characters. they were merely examples. i > was hoping maybe there was some built-in way to escape ALL the characters > that mean anything to regular expressions. Well, technically, *all* characters mean something to a regex

Re: Escaping special characters for regular expressions

2002-02-28 Thread W P
i don't want to just escape those characters. they were merely examples. i was hoping maybe there was some built-in way to escape ALL the characters that mean anything to regular expressions. it just seemed like a lot of work to put a \ before all the characters that regular expressions recogni

Re: Escaping special characters for regular expressions

2002-02-28 Thread eric-perl
On Wed, 27 Feb 2002, W P wrote: > I have a CGI script which takes two strings. It searches for the first > string in a file, replacing it with the second one. This file isn't > really important, more for fun, so I'm not too worried about people > deleting the whole file if they actually type out