3 ms·
For me, none of this cleverness really solves the problem that regular expressions represent for building a large application. For example, I found code that g
by joe_the_user 17y ago
For me, none of this cleverness really solves the problem that regular expressions represent for building a large application.
For example, I found code that generates expressions like "(^|)Terminal(|)" in running mono code in a project I'm working on. I have played with REs a fair amount and I don't know exactly what this should do or why. But it's been doing it for a while.
Sorry, but most Regexing should be avoided unless you have a really good reason. Use system calls to parse file paths, use a really parser to parse a DSL, and so-forth.