[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Regexp issue
From: |
Alan Mackenzie |
Subject: |
Re: Regexp issue |
Date: |
Sat, 20 Jun 2009 10:17:38 +0000 (UTC) |
User-agent: |
tin/1.6.2-20030910 ("Pabbay") (UNIX) (FreeBSD/4.11-RELEASE (i386)) |
Peter Dyballa <Peter_Dyballa@web.de> wrote:
> Am 20.06.2009 um 10:39 schrieb Paulo J. Matos:
>> How can I match the string => but not part of <=>?
> [^<]=>
> [everything but "<"]<followed by exactly "=>">
Or, more precisely,
\(^\|[^<]\)=>
, i.e. [nothing at all] or [something which isn't "<"] following by =>.
If you're using this in a string in a lisp program, you'll have to double
up the backquotes, something like
(search-forward-regexp "\\(^\\|[^<]\\)=>")
> --
> Greetings
> Pete
--
Alan Mackenzie (Nuernberg).
- Regexp issue, Paulo J. Matos, 2009/06/20
- Re: Regexp issue, Peter Dyballa, 2009/06/20
- Message not available
- Re: Regexp issue,
Alan Mackenzie <=