Author: Alan MackenzieAlan Mackenzie Date: Jul 10, 2008 02:39
On Wed, Jul 09, 2008 at 03:30:27AM -0700, Xah wrote:
> emacs regex has a odd pecularity in that it needs a lot backslashes.
> More specifically, a string first needs to be properly escaped, then
> this passed to the regex engine.
Yes. The greatest number of consecutive backslashes I've seen (in a
non-joke context) is 10.
> For example, suppose you have this text ???Sin[x] + Sin[y]??? and you need
> to capture the x or y.
Ironically, Xah, you are doing the same sort of thing in your post,
using crazy quote characters (if that is indeed what they are), 0x5397c
and 0x5397d (according to C-u C-x =). Over my SSH link to my SSP, your
quotes look something like "â~@~]", and are most difficult to read
without a pair of sunspecs which filters out the UTF.
Could you, perhaps, use the standard ASCII quotes 0x22 and 0x27 here,
please?
> In emacs i need to use
> ???\\(\\[[a-z]\\]\\)???
> for the actual regex
> ???\(\[[a-z]\]\)???.
|