Untested, but should work...$file =~ /^(\d+)([A-Z][a-z]+)([A-Z][a-z]+)\.(.*)$/; print "Serial : $1\n"; print "Name : $2\n"; print "Category : $3\n"; print "Extension: $4\n"; #though... you may want to change [a-z] to include any other possible +chars
- Ant
- Some of my
best work - (1 2 3)
In reply to Re: Newbie RegEX question
by suaveant
in thread Newbie RegEX question
by jmaya
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |