in reply to Re: Regex to strip, keep, or add—depending
in thread Regex to strip, keep, or add—depending

It appears you are trying to use perl code to modify perl code. This is not usually a safe idea (unless you really really know what you are doing). The Perl parser is very complex, and will account for more things than you are going to want to deal with in a regex.

Actually I'm grepping it in BBEdit's Find and Replace function. Will not be using it in Perl.


—Brad
"The important work of moving the world forward does not wait to be done by perfect men." George Eliot
  • Comment on Re^2: Regex to strip, keep, or add—depending

Replies are listed 'Best First'.
Re^3: Regex to strip, keep, or add—depending
by JediWizard (Deacon) on Aug 06, 2005 at 16:08 UTC

    I am not familiar with BBEdit, but if you are not using perl... why are you asking the question at perlmonks? regex's in perl may not be the same as regex's in other languages, or other programs.


    They say that time changes things, but you actually have to change them yourself.

    —Andy Warhol