in reply to Re: Regex not behaving as expected
in thread Regex not behaving as expected

and you need capturing () around the pattern itself... *smacks self in face*

www.willhackforfood.org

Replies are listed 'Best First'.
Re:^3: Regex not behaving as expected
by diotalevi (Canon) on Feb 01, 2003 at 16:47 UTC

    Not necessarily. If there are no capture groups then the list context result behaves as if there is an implicit group around the entire regex.


    Seeking Green geeks in Minnesota

      Iff there is a /g modifier on it.