from functorflow import f
#Regular expression for matching HTML comments
with_comment = '<!DOCTYPE html><!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--><html lang="en"><head><meta charset="UTF-8"><title>Document</title></head><body></body></html>'
no_comment = '<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>Document</title></head><body></body></html>'
print(f('html-comment', with_comment)) # True
print(f('html-comment', no_comment)) # False
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)