in reply to Re^2: strip text from a string
in thread strip text from a string

Nested quantifiers in regex; marked by <-- HERE in m/(\s*'^'*+? <-- HERE ')/ at ...

The quantifier sequence  *+? is not valid and is termed 'nested'. See johngg's reply.

Update: See also Quantifiers in perlre. See in particular the paragraph beginning "Note that the possessive quantifier modifier can not be be [sic] combined with the non-greedy modifier."

Replies are listed 'Best First'.
Re^4: strip text from a string
by Anonymous Monk on Sep 11, 2014 at 15:47 UTC

    Darn it! Thanks much for the correction; I missed the regex used.