It'll be really awkward doing this with a single s///.s{^(OBX\|[^|]*\|)([^^]*)\^} {my ($pref, $str) = ($1, $2); $str =~ s{([A-Z])}{"U$1"}g; $str =~ s{([a-z])}{"L$1"}g; "$pref$str"}eg;
In reply to Re: Can anyone make this regex job neater?
by Perl Mouse
in thread Can anyone make this regex job neater?
by Melly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |