4 ms·
> Sure regular expressions can be learned as quickly as one can type del *.* That is not a regex, it's a glob/wildcard pattern.
by justinmk 13y ago
> Sure regular expressions can be learned as quickly as one can type
del *.*
That is not a regex, it's a glob/wildcard pattern.
- 6cxs2hd6 13y agoWell it's also a regexp: It's "del" followed by zero or more spaces followed by zero or more of any char. :) Although I feel competent with moderately complex regexps, I'm not sure I'd want to use them instead of globs while slinging my valuable files at the command line. Which I think goes back to the ancestor point -- is it crazy to use a GUI to make regexps for you? Although I too can get snooty about that, I think it's smart for someone who doesn't use regexps frequently in their work -- but on the rare occasions they need to, they need to get it right.
- brudgers 13y agoIt's literary license. There's no reason that 'splat' cannot represent zero or more printable characters or 'dot' be a reference to the literal character within a syntax for expressing regular expressions. There is no single correct isomorphism. Though the point about Regex's being distinct from wildcards just reinforces the idea that regex's are not an obvious concept.