homepage Welcome to WebmasterWorld Guest from 54.227.41.242
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Having trouble with RegExes
Need to match a string, works for some in FF, not all; Works for all in IE
iamhrh




msg:1482189
 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:
"./images/vanImages/890/85/-1/losing.jpg.aspx"

Again, IE matches it fine. Grrr...

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved