note
abstracts
Hello<p>
Try reading in perlop about the qr operator. Here is an example about how it can be used:
<CODE>
my $String="1234A4321";
my $RegEx=qr/a/i;
$String =~ $RegEx;
print "Match: ",$&||"none"," Pre: ",$`||"none"," Post: ",$'||"none","\n";
# Match: A Pre: 1234 Post: 4321
</CODE>
Hope this helps,,,
<p>
Aziz,,,
<p>
<b>Update:</b> Yes, you got the right idea there using<pre>$re = eval "qr$regexp_val";</pre> Make sure you trust the source of your regexp before feeding it to eval.
103786
103786