Re: Re: how to explode or split or chunk in an efficient way
| From: | Negin Nickparsa | Date: | Thu, 24 Jul 2014 17:21:07 +0000 |
| Subject: | Re: Re: how to explode or split or chunk in an efficient way | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-323655@lists.php.net to get a copy of this message | ||
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
>
>