Here is the code. You need to parse the contents of the ul tag. Sample text:

<h2 class="cut-top">Рекомендації</h2> <ul> <li>Костенко Евгения<br>HR-менеджер, Sicore, 099-121-15-10</li> </ul> <hr> 

(?:<ul>)(\n.*\n)(?:<\/ul>) - it doesn't work for some reason

  • 2
    how exactly do you use a regular expression? What language / utility do you use? - Mikhail Vaysman
  • #include <Array.au3> $linkRead = BinaryToString(InetRead("https://www.work.ua/ua/resumes/3135656/", 17), 4) $re = '/(?:<ul>)(.*)(?:<\/ul>)/s'; $recomendationTxt = StringRegExp($linkRead, $re, 3) _ArrayDisplay($recomendationTxt) #include <Array.au3> $linkRead = BinaryToString(InetRead("https://www.work.ua/ua/resumes/3135656/", 17), 4) $re = '/(?:<ul>)(.*)(?:<\/ul>)/s'; $recomendationTxt = StringRegExp($linkRead, $re, 3) _ArrayDisplay($recomendationTxt) piece of code that does not work. Autoit language. - Only Me
  • correct your question - Mikhail Vaysman
  • Already found a solution, thanks to your hint ;-) - Only Me
  • correct the question. add an answer. - Mikhail Vaysman

1 answer 1

 '(?s)(?:Рекомендації<\/h2>)(?:\s*<ul>\s*<li>)(.*)(?:<\/li>\s*<\/ul>\s*<hr>)' ура заработало. 

It was in whitespace characters.

  • one
    you have the answer does not match the question - Mikhail Vaysman
  • What does not match? - Only Me
  • There is no <hr> question. This means that those who tried to answer did not have complete information. - Mikhail Vaysman