DB<112> $str ="a123bc45de" => "a123bc45de" DB<113> join "", reverse map { /\d/ ? $_ : scalar reverse $_ } split + /(\d+)/, $str => "ed45cb123a"
HTH! :)
Cheers Rolf
(addicted to the Perl Programming Language)
In reply to Re: Reversing Arabic String direction
by LanX
in thread Reversing Arabic String direction
by wael_ahmed
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |