in reply to Re^3: qr// and user provided regex patterns...
in thread qr// and user provided regex patterns...
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.