4 ms·
Stop propagating bad interfaces like 'regular expressions' damn it! An interface that e.g. makes me 'escape' half of my input because its designers think their
by ExpiredLink 13y ago
Stop propagating bad interfaces like 'regular expressions' damn it!
An interface that e.g. makes me 'escape' half of my input because its designers think their special use of characters must take precedence over all user input is a bad interface.
- Su-Shee 13y agoMany programming languages have a function for that to do that for you... In Perl, it's called quotemeta (qw, qq and family, too), in Python and Ruby it's .escape... and there's always \Q ... \E to use... I'm sure others have similar methods/functions.
- GhotiFish 13y agoI agree with that criticism, so do other people, that's why the implementation of Regular Expressions are anything but regular. That always makes me giggle.
- fosap 13y agoSo, what do you use instead?
- sanderjd 13y agoIt's not an interface, it's a language. Most (all?) languages have collisions between in-band and out-of-band information and ways to "escape" them.