Me
Junior Member
Posts: 2
Registered: 8/29/2005
Member Is Offline
|
| posted on 8/29/2005 at 09:58 AM |
|
|
Firefox browser issue: / character breaks validator
The use of the backslash character / breaks the script in Firefox (still works in Internet Explorer).
example:
'website':{'l':'WEBSITE ADDRESS including
http://','f':/^[h]+[t]+[t]+[p]+[:]+[/]+[/]+[w]+[w]+[w]+[.]+/,'r':true,'t':'t_website','mn':'12'},
How do i define a backspace for Firefox compatibility?
|
|
|
tigra
Administrator
Posts: 1912
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 8/29/2005 at 07:17 PM |
|
|
the escape character is "\" so if you want "/" in regexp then it will be "\/"
also you don't need [] for one character,
also if you want http:// at the beginning of the line then it will be just: /^http:\/\/.+/ your regexp will accept hhhttttpppp://blabla
also you require www which is not always in the URL
|
|
|