good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Take out date part of my field valueby socketdave (Curate) |
on Aug 24, 2005 at 14:45 UTC ( [id://486211]=note: print w/replies, xml ) | Need Help?? |
$field =~ s/\(\d{2}\/\d{2}\/\d{2}\)//; This will strip out the parentheses and the date. You were on the right track, but regex quantifiers (other than *, + and ?) use {}. Hope this helps.
In Section
Seekers of Perl Wisdom
|
|