Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: regexp /gs oddity or bug

by straywalrus (Friar)
on Apr 22, 2002 at 23:39 UTC ( #161180=note: print w/ replies, xml ) Need Help??

in reply to regexp /gs oddity or bug

Just another data point: I run perl 5.6.0 on SlakWare 7.1.0 and the output I got from the script,

$_ = "is this odd or not?"; @a = /(.*? )/gs; print @a;
was: "is this odd or". nothing was beyond the or

Comment on Re: regexp /gs oddity or bug
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2015-11-29 14:27 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (751 votes), past polls