in reply to Use of /o regex modifier?

It gives the expected behavior for me with 5.6.1:
Enter regex: a Enter string: abc Matches! Enter regex: d Enter string: abc Matches!
-Mark

Replies are listed 'Best First'.
Re: Re: Use of /o regex modifier?
by EyeOpener (Scribe) on Jul 18, 2002 at 19:19 UTC
    Interesting, I'm also running 5.6.1 (ActiveState build 626), but I get different output:

    Enter regex: a Enter string: abc Matches! Enter regex: d Enter string: abc Enter regex: d Enter string: abcd Matches! Enter regex: \d Enter string: 3 Matches!

    So maybe I understood the /o modifier correctly after all. Now I just need to know why it ain't working! Thoughts, anyone?

    -Peter