good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
(wil) Re: regex: extract a substringby wil (Priest) |
on May 23, 2002 at 20:38 UTC ( [id://168895]=note: print w/replies, xml ) | Need Help?? |
If you're sure that that is going to be your string every time, then something like this should work:
However, if your input is going to be different, i.e. use something other than (in my example) any alphanumeric character, then your regex is going to be slightly different too. Posting some sample data would help in building up a regex for you. - wil
In Section
Seekers of Perl Wisdom
|
|