help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: trivial regexp problem


From: Bastien
Subject: Re: trivial regexp problem
Date: Tue, 22 Jan 2013 12:00:56 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

Hi Luca,

Luca Ferrari <fluca1978@infinito.it> writes:

> I need a little hint on a regexp that is not working within lookig-at:
> I want to recognize any label of the form "label:" so I tested the
> following against re-search-forward "^[ \t]*.*:" and it works.
> However, the same into a looking-at call is not working, so how can I
> find the following regexp?

It does work for me.

label:

(looking-at "^[ \t]*.*:")
 => t

-- 
 Bastien



reply via email to

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