Can't test it, so it might need some tweaking.if (/^OBX(?:[^|]*|){2}([^^]*)/) { substr($_, $-[1], length($1)) =~ s/(?=([a-z]))/$1 > 'Z' ? 'L' : 'U +'/ge; }
In reply to Re: Can anyone make this regex job neater?
by Roy Johnson
in thread Can anyone make this regex job neater?
by Melly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |