Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: REGEX problem with anchors

by 7stud (Deacon)
on Feb 05, 2013 at 17:07 UTC ( [id://1017221]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    /$my_regex \n \z/xms
    
  2. or download this
    my $str = "123dog\n";
    say "-->$str<--";
    ...
    -->123dog
    <--
    
  3. or download this
    printf "%vd", $my_str; 
    
    ...
    #Checking an ascii chart for the code 10:
    #line feed.  Ah hah, I forgot to chomp()
    #the string!
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-09-19 17:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (25 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.