Last active
February 18, 2021 22:04
-
-
Save msoutopico/8b9aa3805174349e0c61045ffef820df to your computer and use it in GitHub Desktop.
tagValidation_removePattern
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PISA/PIAAC HTML TAGS BLOCK | |
(?:<) | |
# followed by anything that is not | |
(?! | |
\s | |
# space | |
|(?:<) | |
# or another opening angle bracket | |
|(/?(EMPTY|[bui]|sup|sub|strong|strike|small|ul|ol|li|a|em|br\s*/?|img|var|span|div|p|run\d|style|center)(\s+[^>]+)?(?:>)) | |
# or a html tag | |
|/?[tgxi]\d+/?(?:>) | |
# or an omegat tag | |
).*? | |
(?:>) | |
| # EMAIL TAG BLOCK: | |
(?:<) | |
[\w.-]+@[\w.-]+ | |
(?:>) | |
| # HASHES BLOCK: | |
###+ | |
| # BLABLA BLOCK: | |
[xX]{3,} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
((\s*|^)#\s.*)?(\n|\Z)|\s+