3 ms·
Meh. I think an even greater Regexp trick is the regular expression that determines primality: http://stackoverflow.com/questions/3296050/how-does-this-regex-
by incepted 11y ago
Meh.
I think an even greater Regexp trick is the regular expression that determines primality:
http://stackoverflow.com/questions/3296050/how-does-this-regex-find-primes http://stackoverflow.com/questions/3296050/how-does-this-reg...
- metafunctor 11y agoThe article actually talks about the prime validator regex, and goes on to say that while it's an awesome trick, it is not the "best ever" because it has limited scope. I for one think the trick described in the article is pretty useful, and might even use it someday (and possibly have already without realizing it).