I am having some trouble with this regular expression, Can somebody maybe assist me with the regex…
I want to match the following in the source of websites that have this line installed on there pages:
The code should always match this exact match (It is a constant):
<img src="http://www.domain.com/test.asp" width="1" height="1" />
htstring.match(/\<img src\=""http:\/\/www.domain.com\/test.asp"" width=""1"" height=""1"" \/>/ig);
My problem seems to be escaping the ” in the regex
Any help would be appreciated!
Thanks
You should only need to escape forward slashes and periods.