Re: Re: how to explode or split or chunk in an efficient way

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
>
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux