Re: Case insensitive 'split' regex function?
| From: | Stefan Livieratos | Date: | Tue, 20 Jun 2000 11:43:46 +0000 |
| Subject: | Re: Case insensitive 'split' regex function? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-21822@lists.php.net to get a copy of this message | ||
Hi,
split works with regex. The following script ...
<?php
$a = "ffffDfffffdGGGGGDjjjj";
$b = split("[Dd]",$a);
print count($b);
?>
... yields 4 as a result.
Regards
Stefan Livieratos
-----Ursprüngliche Nachricht-----
Von: John Parker <jparker@itchannel.net>
An: 'PHP Dev List' <php-dev@lists.php.net>
Gesendet: Dienstag, 20. Juni 2000 13:12
Betreff: [PHP-DEV] Case insensitive 'split' regex function?
> Sorry, if this is the wrong list, but...
>
> I don't suppose some kind hearted soul would like to add a case
insensitive
> version of the 'split' regex function to cvs? (I'd do it myself if I
hadn't
> flogged my C experience for a copy of Photoshop many, many moons ago.)
>
> Bearing in mind the current regex function's naming conventions, this
would
> presumably be 'spliti'?
>
> Comments / feedback, etc. ?
>
> Regards,
> John Parker.
>
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>