[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble with regexp

From: David Kastrup
Subject: Re: Trouble with regexp
Date: Thu, 22 May 2008 18:31:37 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

TheLonelyStar <address@hidden> writes:

> Hi,
> I some trouble with regular expression. I thought, the regexp "\(foo\|bar\)"
> should match either foo and bar.
> But  if I have a buffer with "foo" in it, the regexp build does not match it
> with that :(.

It does here.  You are probably not doing the right quoting.  Please
remember that the Lisp string syntax requires quoting of quote marks and
backslashes on _top_ of what quoting your regexps will need.

So please post the actual code that fails instead of talking about it.

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

[Prev in Thread] Current Thread [Next in Thread]