Sincerely Negin Nickparsa On Thu, Jul 24, 2014 at 10:18 AM, Jim Giner <jim.giner@xxxxxxxxxxxxxxxxxx> wrote: > Your problem is best solved with regex. I'm not a user of such myself, > but someone will come along shortly I'm sure. > > Jomali yeah! yours is nice too Jim I solved it with guidance of Jeffery! and yes preg_match thank you! preg_match('/([a-z]+)(\d+)([a-z]+)(\d+)/i', $str, $matches); > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >