Welcome to WebmasterWorld Guest from 54.146.201.80

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)

New User

10+ Year Member

joined:Sept 21, 2005
posts:18
votes: 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...