![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Re: Substitution Questionby pfaut (Priest) |
on May 05, 2003 at 20:55 UTC ( #255756=note: print w/replies, xml ) | Need Help?? |
If you are doing this to insert the data in a database, I'd recommend making the problem go away by learning how to use placeholders. Look in Tutorials for guides on using DBI and placeholders. Anyway, this regex should do what you want.
You may also have to do substitutions for the escape character itself if it might ever appear in any of your strings.
In Section
Seekers of Perl Wisdom
|
|