in reply to Why is this regex greedy?

your regex is matching:
/ followed by one or more any character up to the first digit til end of line

updated: removed regex example sice you just want it explained

Replies are listed 'Best First'.
Re^2: Why is this regex greedy?
by pbeckingham (Parson) on Jul 02, 2004 at 20:38 UTC

    Thanks, but I have no shortage of correctly functioning regexes - I want to know precisely why the one listed doesn't work. chromatic knows.

      It's simple, the  .+ is capturing everything.