Re: [PHP] alternate pattern match

2001-03-28 Thread Philip Olson
> 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)"; This should do it : An article that uses regular expressions to deal with this browser detection hoopla can be seen here :

Re: [PHP] alternate pattern match

2001-03-28 Thread Christian Cresante
if all you want to know is the browser's version, why not use get_browser() http://www.php.net/manual/en/function.get-browser.php --- Costas <[EMAIL PROTECTED]> wrote: > How do i extract the position (integer counting from > the left) of the letter > M (beginning 'MSIE'. > > $str = "Mozilla/4.

Re: [PHP] alternate pattern match

2001-03-28 Thread Yasuo Ohgaki
Is there any reason that you cannot use regular expression? -- Yasuo Ohgaki ""Costas"" <[EMAIL PROTECTED]> wrote in message 99t43c$qr4$[EMAIL PROTECTED]">news:99t43c$qr4$[EMAIL PROTECTED]... > How do i extract the position (integer counting from the left) of the letter > M (beginning 'MSIE'. > >

[PHP] alternate pattern match

2001-03-28 Thread Costas
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 un