Welcome to WebmasterWorld Guest from 54.166.114.43

Forum Moderators: open

Message Too Old, No Replies

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)

5+ Year Member



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...

 

Featured Threads

Hot Threads This Week

Hot Threads This Month