in reply to Re^4: Extract a pattern from a string
in thread Extract a pattern from a string

Brilliant ! - $-[1] is already calculated in the regex (as @-), so yes, it is more efficient than pos+length.

             I hope life isn't a big joke, because I don't get it.
                   -SNL

Replies are listed 'Best First'.
Re^6: Extract a pattern from a string
by avim1968 (Acolyte) on Jun 14, 2012 at 05:15 UTC
    Done THANK YOU :-)