|There's more than one way to do things|
cool regular expression needed for matching in columnsby Ben Win Lue (Friar)
|on Jan 24, 2007 at 10:03 UTC||Need Help??|
Ben Win Lue has asked for the
wisdom of the Perl Monks concerning the following question:
Hi, followers of the right belief,
I have a nine character string that contains three columns of 3 characters and I have to find two strings in the string.
Ok, lets say I have to find 'abc' and 'xyz'
'abcmmmnnn' has to result true (abc is found in first column)
I can do it the easy way by splitting the string into substrings and doing 6 single eq or doing 2 greps in an array of the substrings.
But is there a cool regex way?
Thank you for your attention