This is what I found when I was wondering that: http://stackoverflow.com/questions/4724588/using-alternation-or-character-class-for-single-character-matching
Also: http://stackoverflow.com/questions/22132450/why-is-a-character-class-faster-than-alternation Basically character classes are faster, designed for single characters, and more readable. Cheers > On 2017-05-09, at 14:10, Jean-Christophe Helary > <[email protected]> wrote: > > I'm wondering if [] and | are equivalent for single characters or if there > are marginal cases where they would not be equivalent ? -- This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit> --- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/bbedit.
