PATTERNS
RegEx Flavour
ECMAScript (JavaScript, ActionScript, TypeScript, etc.)
NOTES FOR ALL PATTERNS IN THIS SCRIPT:
These require the regex library, not Python's built-in-crap
These require the Single Line (regex101) or regex.DOTALL (Python regex) flag
Style Blocks (2 patterns)
Matches:
All any code here blocks that aren't preceded by ### Pattern 1: Old version (would have replaced all punctuation with punctuation from the string library)
NOTE: Does not require regex.DOTALLre
(?.*?)
(? any code here `
Pattern:
(?.*?)
HTML Link
Matches:
All blocks of code containing `` up to, but not including, an empty line
Pattern:re
(?<!