3 ms·
"f(x)" and "|" inside a regular expression mean something different. Similarly here, pattern matching has its own sub-language (a DSL).
by pfalcon 6y ago
"f(x)" and "|" inside a regular expression mean something different. Similarly here, pattern matching has its own sub-language (a DSL).
- toxik 6y agoCoincidentally, regular expressions are not part of the Python syntax. They're just string literals.
- craftinator 6y agoAre you being intentionally ironic here, or do you not know that regex DSL is written only inside of strings in python, not within the Python's syntax?