Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

How to write regex for special characters without using back slashes??

by sumathigokul (Acolyte)
on May 22, 2015 at 05:39 UTC ( #1127430=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @nets = "in1_[0], in1_[1]";
    
  2. or download this
    my @nets = "a_c, b_c, N_05";
    
  3. or download this
    while (<DATA>){
    print "substitution is done" if (s/$nets[0]/$nets[1]/);
    }
    
  4. or download this
    -DATA-
    in1_c[0]
    ...
    in1_c[1]
    in1_c[0]
    in1_c[1]
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2023-11-29 07:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?