![]() |
|
Welcome to the Monastery | |
PerlMonks |
regular expression helpby pip9ball (Acolyte) |
on Jun 03, 2009 at 19:21 UTC ( #768125=perlquestion: print w/replies, xml ) | Need Help?? |
pip9ball has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
I'm in need of some regular expression help. I'd like to create a regular expression that would match the following strings: <*2>H<3:0>,<*2>I<3:0>,...,<*2>Z<2:0> H<3:0>,<*2>I<3:0>,...,<*2>Z<2:0> So the <*K> is optional in each string and there could be numerous tokens (seperated by commas). I have the following: but this will only match <*K>A<N:M>,<*K>B<N:M> and not A<N:M>,<*K>B<N:M>. Is such a regular expression possible? Thanks!
Back to
Seekers of Perl Wisdom
|
|