I can't figure out why my jquery replacement code wouldn't work.
I try to make the follow replacement:
http://mysite.com/_thumbs/0000312/0312718/0312718_$varm.jpg
I added '$var' to the position where I want to put a number, we can take '1' for now. So I need to replace $var for 1.
What I tried;
var img = $('img', this).attr('src'); // I grabs the image url like above.
img.replace(/$var/, 1)
But nothing happens.
Thanks in advance!
Nick