Asumption->both first name and last name will always be there and seperated by '%'$data = "Johnson%Andrew%AX321%Engineer" ; if($data=~ /.*%.*%A/) { @arr=split('%', $data); print "$arr[0] $arr[1]"; }
In reply to Re: Regex help needed
by ansh batra
in thread Regex help needed
by ghosh123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |