alternate pattern match
| From: | Costas | Date: | Wed, 28 Mar 2001 16:57:12 +0000 |
| Subject: | alternate pattern match | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-45925@lists.php.net to get a copy of this message | ||
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