in reply to Newbie RegEX question
See. perlre and perlop for more info.$_ = '001WhitePottery.jpg'; my($serial, $name, $cat) = m< ^ (\d+) ([A-Z][a-z]+) ([A-Z][a-z]+) >x; print "($serial) Serial\n", "($name) Name of Product\n", "($cat) Category\n"; ___output__ (001) Serial (White) Name of Product (Pottery) Category
_________
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Newbie RegEX question
by Limbic~Region (Chancellor) on May 13, 2003 at 15:07 UTC |