| Welcome to WebmasterWorld Guest from 188.8.131.52 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
|Subscribe to WebmasterWorld|
|Having trouble with RegExes|
Need to match a string, works for some in FF, not all; Works for all in IE
| 5:24 pm on Nov 29, 2005 (gmt 0)|
Well, straight to the point:
i'm using the following regex:
var match = /(\d+)\/(\d+)\/([\d-]+)\/(.+).aspx/gi.exec(imgSrc);
imgSrc is set to something like "./images/vanImages/890/85/-1/laziness.gif.aspx"
for some reason, I can't seem to get FF to match this string, while IE matches it fine!
FF, however, will match this one:
Again, IE matches it fine. Grrr...
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
© Webmaster World 1996-2013 all rights reserved