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

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

Does word under cursor match pattern?


From: Paulo J. Matos
Subject: Does word under cursor match pattern?
Date: Mon, 23 Aug 2010 12:18:45 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Hi,

I am trying to know if a word under the cursor matched a pattern
([Bb]-?[0-9]+). My idea was:
- Select region with word under cursor
- Transform region into string
- Apply regexp on string

This has one problem: I can't seem to find a function to transform a
region into a string. On the other hand maybe I can work with the region
directly.

Any tips on how to do this?

Cheers,

-- 
PMatos




reply via email to

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