Re: Patterns: Why are anchors not character classes?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Patterns: Why are anchors not character classes?
- From: "John Hind" <john.hind@...>
- Date: 2015年7月17日 09:12:28 +0100
2015年7月16日 18:24:43 -0400 Jonathan Goble <jcgoble3@gmail.com>
>So just use something else (though I don't know what to suggest). The
>main point is to use letters instead of punctuation to avoid breaking
>existing code.
On reflection, Jonathan, I agree completely. Maybe '%i' and '%e' for
"initial" and "end" - but since few of the codes have any discernible
mnemonic value, that is probably a secondary consideration!
Incidentally, this has the additional benefit of reducing "^" to one
unambiguous meaning and eliminating "$" as a special character.
But whether to actually deprecate them is a choice.
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus