[HTTPS-E Rulesets] Uncpaturing patterns

Osama Khalid osamak at gnu.org
Tue Sep 27 13:29:50 PDT 2011


On Tue, Sep 27, 2011 at 01:07:17PM -0700, Peter Eckersley wrote:
> What does an "uncapturing pattern" do?  What are the benefits of
> using them?

Brackets create a "backreference" for the matched characters. If that
reference is not going to be used, it's (said to be) good for
performance to use a non-capturing brackets. This can be done by using
"(?:)" instead of "()".

http://www.regular-expressions.info/brackets.html

--Osama Khalid
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.eff.org/pipermail/https-everywhere-rules/attachments/20110927/b3a8dd39/attachment.sig>


More information about the HTTPS-Everywhere-Rules mailing list