all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Does word under cursor match pattern?
@ 2010-08-23 11:18 Paulo J. Matos
  2010-08-23 11:56 ` Lennart Borgman
  2010-08-23 12:37 ` Deniz Dogan
  0 siblings, 2 replies; 5+ messages in thread
From: Paulo J. Matos @ 2010-08-23 11:18 UTC (permalink / raw)
  To: help-gnu-emacs

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




^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <mailman.6.1282562668.29657.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2010-08-23 12:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-23 11:18 Does word under cursor match pattern? Paulo J. Matos
2010-08-23 11:56 ` Lennart Borgman
2010-08-23 12:43   ` Paulo J. Matos
2010-08-23 12:37 ` Deniz Dogan
     [not found] <mailman.6.1282562668.29657.help-gnu-emacs@gnu.org>
2010-08-23 11:58 ` Marc Mientki

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.