Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Perl & regex help

by smls (Friar)
on Jan 30, 2013 at 23:53 UTC ( [id://1016184]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #                  10        20        30        40        50
    #          ---------'---------'---------'---------'---------'----
    ...
    while ($str =~ /&(?!#?[0-9a-z]+;)/gi) {
      print "Found ampersand at position ".pos($str)."\n";
    }
    
  2. or download this
    Found ampersand at position 32
    Found ampersand at position 48
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-24 21:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found