in reply to Re: Text elimination within a string
in thread Text elimination within a string

Ofcourse you could consider the Death to Dot Star! node :|

Greetz
Beatnik
... Quidquid perl dictum sit, altum viditur.
  • Comment on Re: Re: Text elimination within a string

Replies are listed 'Best First'.
Re: Text elimination within a string
by cLive ;-) (Prior) on Apr 09, 2001 at 02:38 UTC
    Except in this case, a greedy match is required.

    The second example is 'death to dot star' compliant, but is still making an assumption (that all text in braces to be removed is in upper case)

    Using:

    \([^)]*\)
    would only match first set of braces.

    So .* is appropriate here. honest :)

    cLive ;-)

    Update: Should also begin match with a ^. Hmmm, oops.