April 2007
Non-Capturing Sub-Patterns in PCRE
Posted by on Thursday, April 5, 2007 - 1 comment
I've been using Perl Compatible Regular Expressions (PCRE) for about four years of my web-development. PCRE gurus may scoff at me for not knowing this beforehand, but here is a neat feature of PCRE I discovered today. • You may specify a sub-pattern as non-capturing using PCRE syntax. To do this …