Update RegEx conversions.md

This commit is contained in:
Imre Kristoffer Eilertsen
2024-02-07 22:33:27 +01:00
committed by GitHub
parent c8148bd2b7
commit 16f12f40d7
+21
View File
@@ -27,6 +27,27 @@ According to Sublime Text build 4143. Case-sensitive.
#### Similar obfuscation to replace spaces with "\s". (Can be case-insensitive)
* `(:has-text\(/([a-zæøåäöA-Z0-9е{}()|^$.,*'&’#@éèáàóòíìúùü-]|\\|\?){0,}) (([a-zæøåäöA-Z0-9е{}()|^$.,*'&’#@éèáàóòíìúùü -]|\\|\?){0,}/i?\))` → `\1\\s\3`
#### Other
```
"(:has-text.*\[.*\]([a-zA-Z0-9:_'"?!|-]|\\){0,}) "
\1\\s
\[# \]
(#|\\s)
\[ #\]
(#|\\s)
\( \|\$\)
($|\\s)
\(\$\| \)
($|\\s)
"(:has-text\(/) "
\1\s
```
## Convert `#?#*:has(` to `##*:has(` due to new browser (and ABP) guidelines
`^([a-z0-9*,.-]{0,})#\?#((([a-zA-Z0-9.#_*="_+>~/\^ -]|\[|\]|:"){0,}):has\(([_=."+#a-zA-Z0-9~>%&/$',;?^!*一-龯ぁ-んァ-ン・ーㄱ-힣а-яА-ЯæøåÆØÅäöÄÖ() -]|\[|\]|://){1,}\))$`
↓