Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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
    s/\Q$value\E/$replace/i;
    
  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";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1056720]
help
Chatterbox?
Discipulus psylocibina party?
[Discipulus]: listen monks: do you think is possible to realize here at pm some kind of collaborative works? beyond ask & answer, i mean
[Tanktalus]: isn't that what github, sourceforge, gitlabs, etc., are for?
[Discipulus]: mmh.. i was no strictly thinking to programs; more on some new tutorials

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2017-09-22 21:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (269 votes). Check out past polls.

    Notices?