Re: regex. help

2003-09-24 Thread Damon Davison
On Wednesday 24 September 2003 10:54, Pandey Rajeev-A19514 wrote : I have a question regarding matching strings that have : embeded perl special characters. ... : Can some one tell me an easy way to do ? Have a look at \Q and \E. They're both listed in perldoc perlre under the main "Regular E

Re: search replace

2003-09-06 Thread Damon Davison
On Saturday 06 September 2003 17:53, Pandey Rajeev-A19514 wrote : : How do I search replace text in a file from a perl script. : i.e. by opening the file in write mode and then do a search : replace. You can do what you want via the regular expression substitution operator "s///" in a "while" lo