Is it possible to specify a line break when parsing? I tried to write in one line, I also tried # 10 + # 13, but without success. If you can perform this transfer, then tell me how, here are the lines in which you need to specify the transfer:

<div class="wrap_fix"> <a href="http://news.tut.by/politics/329034.html" data-hint-source="1"> 
  • @ Tolya Guard Try specifying "\ r \ n" or through the mnemonic: & # 10; - romeo

2 answers 2

For Delphi, try chr (13) + chr (10)

  • Also an option - romeo

REGEX:

 |<div class=\"wrap_fix\">\s*<a href=\"http:\/\/news\.tut\.by\/\d+\.html\" data-hint-source=\"\d+\">|gi 

For spaces, hyphenation, tabs, etc., it answers: \ s * - an asterisk means that there may not be any of them or there can be as many as you like.

I do not know the Delphi dialect, but if PCRE regex is used there, then this code should help you.

  • The compiler swears on \ s *. - Tolya Guard
  • @GenchiK The author seems to have indicated that you need to "specify a transfer when parsing," and not to take into account whitespace characters - romeo
  • @romeo, a line break is included in \ s. - Gene Ant
  • @GenchiK Yes, that's right "\ s" = "\ f \ n \ r \ t \ v", but the question is different. Here and @ yalex1 in a similar way, I have practiced it, just like me. - romeo
  • Excellent!) Got it) - Gene Ant