Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: regexp mystery no xxx

by ides (Deacon)
on Aug 18, 2003 at 21:22 UTC ( #284728=note: print w/replies, xml ) Need Help??


in reply to regexp mystery no xxx

WOW! I have no idea why, but if you remove the 'g' option on the second regex it works as expected. There really isn't a need for the 'g' in these examples because you're binding on ^ and $ which makes the 'g' useless.

-----------------------------------
Frank Wiles <frank@wiles.org>
http://frank.wiles.org

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2023-12-02 11:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (16 votes). Check out past polls.

    Notices?