in reply to Re: Complex regex question
in thread Complex regex question

But Cody Fendant seems to want the alpha and numeric fields extracted separately. The  m{\b ( [ab] \d+ | \d+ [ab] ) \b }gx regex requires a subsequent (albeit simple) step to achieve this:

c:\@Work\Perl\monks>perl -wMstrict -MData::Dump -le "my $string_three = 'foo bar [21a] plus (b23) baz bax'; my @string_three_results = $string_three =~ m{\b ( [ab] \d+ | \d+ [ab +] ) \b }gx; dd \@string_three_results; " ["21a", "b23"]


Give a man a fish:  <%-{-{-{-<