Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2023-06-08 01:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (29 votes). Check out past polls.

    Notices?