[tpm] Greedy regex question

arocker at vex.net arocker at vex.net
Sun Mar 2 07:06:46 PST 2008


>>
>> So you want to drop the parenthesised string at the end of the line?

Then I suggest the following:   s/\([^(]*\)$//

A left-paren. \( followed by anything but left-paren. [^(] repeated. *
followed by a right-paren. \) at the end of the line. $




More information about the toronto-pm mailing list