Do you know where your variables are? | |
PerlMonks |
Text elimination within a stringby cdherold (Monk) |
on Apr 08, 2001 at 06:55 UTC ( [id://70772]=perlquestion: print w/replies, xml ) | Need Help?? |
cdherold has asked for the wisdom of the Perl Monks concerning the following question:
Brother monks,
I have a string, $headline, that contains the following: ( BW)(CA-LIGAND-PHARMACEUTICALS)(LGND) Ligand's Targretin Capsules Approved in Europe, Targretin Gel European Application Submitted; Ligand to Receive $3.5 Million Milestone Payments From Elan Is there any quick expression I can use to eliminate all the text between the first and last parentheses -- "(" and ")" -- as well as the flanking parentheses themselves? cdherold
Back to
Seekers of Perl Wisdom
|
|