considers a string that is based on the following : 1. can contain any alphanumeric characters 2. the string ends with number(s)
Now by using
preg_match($expression, $subject, $parts) I want to split the string in such a manner that the ending numbers and the rest of the string is stored in the $parts array separately.
for example: kim2bn88 should result in two parts: kim2bn and 88
But I am not able to figure out the regex. Kindly help!