Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Regex is not working

by moritz (Cardinal)
on Oct 03, 2013 at 05:21 UTC ( #1056720=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
  2. or download this
    my @array_1 = ("\$Id_run_query=1", "\$name_run_query=xyz", "db_query_r
    +un_query=select * from meter where metetid=\$Id and metername=\$name"
    my $query;
    $query =~ s/($replace_re)/$replace{$1}/ig;
    print "===>$query\n";