Hi all, need some help with reg-exp. i haven't done reg-exp in a looooong time so i'm a bit rusty. This is what I have so far (and it works great):
But now I need to add the following to the "list". The new addition is for iPhone browsers:
Can anyone help?
____________________________________
Just Imagine.
Code:
^(Mozilla/4.[0-9][0-9]?)(.*)(MSIE[ \t]*(([5-9].[5-9])|([6-9].[0-9])))(.*)(Windows(.*))$||^(Mozilla/5.[0-9][0-9]?)(.*)(Macintosh(.*)|Windows(.*))((Netscape(.*)/([7].[1-9])(.*))|(Firefox/[1-9].[0-9](.*)))||^(Mozilla/[4-5].[0-9][0-9]?)()(.*)(Macintosh(.*))(Safari/[1-9](.*))||^(Mozilla/[0-9].[0-9][0-9]?)()(.*)((MSIE[ \t](.*))&(AOL[ \t](.*))&(Mac(.*)))||^(Mozilla/[4-9].[0-9][0-9]?)()(.*)((MSIE[ \t](.*))&(AOL[ \t][7-9](.*))&(Windows(.*)))
But now I need to add the following to the "list". The new addition is for iPhone browsers:
Code:
Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3
Can anyone help?
____________________________________
Just Imagine.