Problems? Is your data what you think it is? | |
PerlMonks |
Re^4: qr// and user provided regex patterns...by misterMatt (Novice) |
on Aug 02, 2009 at 21:00 UTC ( [id://785280]=note: print w/replies, xml ) | Need Help?? |
so I pretty much will have to split it and evaluate it like this: eval("$text =~ s/$pa/$tx/$md");
It might be difficult splitting a regex that could contain multiple /'s. I'll have to adjust the program so the user enters the pattern, and replacement separately I guess.
In Section
Seekers of Perl Wisdom
|
|