I recently have been working with regexmatch for reading nfo files and everything was working smooth until today.
I read from the file directly which is 3K, but here is a substring which includes the needle
Part of haystack:
<tagline>Everyone's getting smoked</tagline>
<runtime>95</runtime>
<thumb aspect="poster" preview="http://image.tmdb.org/t/p/w500/auQHgr1FO6upJpXx1eYEeyq2sMs.jpg">http://image.tmdb.org/t/p/original/auQHgr1FO6upJpXx1eYEeyq2sMs.jpg</thumb>
<thumb aspect="poster" preview="http://image.tmdb.org/t/p/w500/6oGHH27nqaLGfpcgYRIZYSJs7AD.jpg">http://image.tmdb.org/t/p/original/6oGHH27nqaLGfpcgYRIZYSJs7AD.jpg</thumb>
Needle I am looking for: http://image.tmdb.org/t/p/w500/auQHgr1FO6upJpXx1eYEeyq2sMs.jpg
Code:
Code: Select all
regexmatch(Data, "(<thumb aspect=""poster"" preview=""")(.*?)(?=">)", results)
MsgBox Error: %ErrorLevel%
I've had errors before and have been able to solve them, but this one is very unusual.
Any thoughts?
Thanks
Mike
Sorry, I keep seeing in the preview that the url link I am looking for keeps messing up.
It is removing the : after the // after http