On Wed, Mar 25, 2009 at 12:00 PM, Rick Bragg <li...@gmnet.net> wrote: > I need a quick regex to strip out the following: > > example: > change "remove-all-this (Keep This)" into just "Keep This" >
$s =~ s/.*\((.*)\)/$1/; > something like: > s/ beginning of line up to and including the first ( //g > s/ starting from and including first ) to end of line //g > > Can anyone help with this quick line or 2? > > Thanks! > Rick Bragg > > > > > -- > This message has been scanned for viruses and > dangerous content by Green Mountain Network, and is > believed to be clean. > > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > > -- [ Rodrick R. Brown ] http://www.rodrickbrown.com http://www.linkedin.com/in/rodrickbrown -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/