[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-general
Subject:    Re: [PHP] Re: how to explode or split or chunk in an efficient way
From:       Negin Nickparsa <nickparsa () gmail ! com>
Date:       2014-07-24 17:21:07
Message-ID: CAJGV41e2PCiP-bq-H8U1bz9hzS76ojbg23U_ob4Fp6QNesMjfQ () mail ! gmail ! com
[Download RAW message or body]


Sincerely
Negin Nickparsa


On Thu, Jul 24, 2014 at 10:18 AM, Jim Giner <jim.giner@albanyhandball.com>
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
>
>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic