4 ms·
What makes regular expressions in most languages not "regular"? Is there a standard from which they deviate?
by jakelazaroff 8y ago
What makes regular expressions in most languages not "regular"? Is there a standard from which they deviate?
- stplsd 8y agoYes, there is a very specific definition: https://en.wikipedia.org/wiki/Regular_language https://en.wikipedia.org/wiki/Regular_language
- coldtea 8y ago"regular" here is a mathematical property related to what patterns should be able to be expressed.
- chubot 8y agoYes, there's a mathematical notion of regular expression that predates their use in computers. This article explains the difference well: https://swtch.com/~rsc/regexp/regexp1.html https://swtch.com/~rsc/regexp/regexp1.html