Problems? Is your data what you think it is? | |
PerlMonks |
Re: regex: seperating parts of non-formatted namesby fruiture (Curate) |
on Sep 09, 2002 at 18:15 UTC ( [id://196376]=note: print w/replies, xml ) | Need Help?? |
A good approach to programming problems in general is "breaking the problem into pieces". This is true for regular expressions in general. So I'd start writing the main regexp like that:
And now you define each of the variables on their own, of course above this declaration.
Any more details should be nop big problem. HTH to <cite>enlighten of the powers of perl</cite> :) update: untested, there may be more mistakes... --http://fruiture.de
In Section
Seekers of Perl Wisdom
|
|