Hello, I'm back with a problem with regular expressions
I have this html code (is more extensive, but it is always the same, "and I need to list the text found between "> and </a> with regular expressions.
but there is an error, this is the result.
2757817 2691586 Installation instructions.htm
2790817 2732618_readme.htm
942146.reg
Windows6.html <== Error
Windows6.html <== Error
Can you help? THANKS!
PD: You can also take data from <a href=" and ">, but not how to replace the "%20" for spaces with ER.
I have this html code (is more extensive, but it is always the same, "and I need to list the text found between "> and </a> with regular expressions.
<img src="/icons/text.gif" alt="[TXT]" width="20" height="22"> <a href="2757817%202691586%20Installation%20instructions.htm"> 2,757,817 2,691,586 Installation instructions . htm </ a> <img width="20" height="22"> <a src="/icons/text.gif" alt="[TXT]" 2732618_readme.htm href="2790817%202732618_readme.htm"> 2790817 </a> <img width="20" height="22"> <a src="/icons/text.gif" alt="[TXT]" href="942146.reg"> 942146.reg </a> <img src="/icons/text.gif" alt="[TXT]" width="20" height="22"> <a href="Windows6.1-KB2757817-x64%20Installation%20instructions.htm"> Windows6.1-KB2757817-x64 Installation instructions.htm </a> <img src="/icons/text.gif" alt="[TXT]" width="20" height="22"> <a href="Windows6.1-KB976932-x64.html"> Windows6.1-KB976932-x64.html </a>
[ autoit ]
$sFilter = "msu|html|reg|txt" $sString = '(?i)">([^< ].*?\.(?:' & $sFilter & '))</a>'
but there is an error, this is the result.
2757817 2691586 Installation instructions.htm
2790817 2732618_readme.htm
942146.reg
Windows6.html <== Error
Windows6.html <== Error
Can you help? THANKS!
PD: You can also take data from <a href=" and ">, but not how to replace the "%20" for spaces with ER.