2 ms·
First, referencing that regex is somewhat misleading. That's generally the end result of building the constituent parts through Perl's qr regex object creator,
by kbenson 11y ago
First, referencing that regex is somewhat misleading. That's generally the end result of building the constituent parts through Perl's qr regex object creator, and them combining them into a larger regex[1]. Second, if you want to use a grammea, there's a way to to that in the more complex regex engines, you can use named captures to create a grammar within a regex, and then nun it[2].
1: http://stackoverflow.com/a/2953742/210749 http://stackoverflow.com/a/2953742/210749
2: http://stackoverflow.com/questions/4840988/the-recognizing-power-of-modern-regexes/4843579#4843579 http://stackoverflow.com/questions/4840988/the-recognizing-p...