Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: help needed to solve in regex

by ikegami (Patriarch)
on Jan 10, 2007 at 05:05 UTC ( [id://593828]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $find_re = qr/1\.2\.3/i;
    ...
    grep /$find_re/, ...
    ...
    
  2. or download this
    my $find_str = '1.2.3';
    my $find_re  = quotemeta($find_str);
    ...
    grep /$find_re/i, ...
    ...
    
  3. or download this
    my $find_str = '1.2.3';
    ...
    grep /\Q$find_str\E/i, ...
    ...
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://593828]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-25 21:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found