In the following code the first SRE produces what I am looking for but the second does not. It seems like it should produce the same result.
Can someone explain why, please?
kylomas
[ autoit ]
#include <array.au3> ; This works local $str = '<img width="20" height="22"> <a src="/icons/text.gif" alt="[TXT]" 2732618_readme.htm href="2790817%202732618_readme.htm"> 2790817 </a>' $aTemp = stringregexp($str,'>(.*?)<',3) _arraydisplay($aTemp,'Without /a') ; This returns too much local $str = '<img width="20" height="22"> <a src="/icons/text.gif" alt="[TXT]" 2732618_readme.htm href="2790817%202732618_readme.htm"> 2790817 </a>' $aTemp = stringregexp($str,'>(.*?)</a',3) ; added /a to pattern _arraydisplay($aTemp,'With /a')
Can someone explain why, please?
kylomas