How do you know that the substring is not found in the text?

want to find not completely downloaded a web page, you need to determine that the tag </body> is not present in the text
important! without using PHP or other languages, only a regular expression
April 19th 20 at 12:13
2 answers
April 19th 20 at 12:15
Solution
(?s)^(?!.*</body>)
need a clean regular season without PHP - Bianka commented on April 19th 20 at 12:18
@Bianka, something like (?!.*</body>)
Negative lookahead https://www.php.net/manual/ru/regexp.reference.ass... - Felton commented on April 19th 20 at 12:21
April 19th 20 at 12:17
podstakanniks === NOT(postrequesteventargs)
need a clean regular season without PHP - Bianka commented on April 19th 20 at 12:20

Find more questions by tags Regular expressions