| Welcome to WebmasterWorld Guest from 220.127.116.11 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|Having trouble with RegExes|
Need to match a string, works for some in FF, not all; Works for all in IE
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.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved