Re: alternate pattern match
| From: | Yasuo Ohgaki | Date: | Wed, 28 Mar 2001 17:36:28 +0000 |
| Subject: | Re: alternate pattern match | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-45935@lists.php.net to get a copy of this message | ||
Is there any reason that you cannot use regular expression?
--
Yasuo Ohgaki
""Costas"" <costas@othermedia.com> wrote in message
news:99t43c$qr4$1@toye.p.sourceforge.net...
> How do i extract the position (integer counting from the left) of the letter
> M (beginning 'MSIE'.
>
> $str = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)";
>
> NOTE, i only want a single integer (it is 28, i counted manuallt!!)
>
> Thanks
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>