all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [:alpha:] Does not work
@ 2014-01-31  5:54 Cecil Westerhof
  2014-01-31  6:23 ` Yuri Khan
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Cecil Westerhof @ 2014-01-31  5:54 UTC (permalink / raw)
  To: help-gnu-emacs

I would aspect that when I have the following:
    (re-search-forward "[[:alpha:]]" nil t)
    0123456789ABCDE

That when I execute the search I would find the 0, but I find the A.
What is going wrong here? I am using:
    GNU Emacs 24.2.1 (x86_64-suse-linux-gnu, GTK+ Version 3.6.4) of 2013-02-21 on build16

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [:alpha:] Does not work
  2014-01-31  5:54 [:alpha:] Does not work Cecil Westerhof
@ 2014-01-31  6:23 ` Yuri Khan
  2014-01-31  8:02 ` Chris F.A. Johnson
       [not found] ` <mailman.13320.1391149404.10748.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 5+ messages in thread
From: Yuri Khan @ 2014-01-31  6:23 UTC (permalink / raw)
  To: Cecil Westerhof; +Cc: help-gnu-emacs@gnu.org

On Fri, Jan 31, 2014 at 12:54 PM, Cecil Westerhof <Cecil@decebal.nl> wrote:
> I would aspect that when I have the following:
>     (re-search-forward "[[:alpha:]]" nil t)
>     0123456789ABCDE
>
> That when I execute the search I would find the 0, but I find the A.

Maybe you’re confusing with [[:alnum:]]?

http://www.gnu.org/software/emacs/manual/html_node/elisp/Char-Classes.html



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [:alpha:] Does not work
  2014-01-31  5:54 [:alpha:] Does not work Cecil Westerhof
  2014-01-31  6:23 ` Yuri Khan
@ 2014-01-31  8:02 ` Chris F.A. Johnson
       [not found] ` <mailman.13320.1391149404.10748.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 5+ messages in thread
From: Chris F.A. Johnson @ 2014-01-31  8:02 UTC (permalink / raw)
  To: Cecil Westerhof; +Cc: help-gnu-emacs

On Fri, 31 Jan 2014, Cecil Westerhof wrote:

> I would aspect that when I have the following:
>    (re-search-forward "[[:alpha:]]" nil t)
>    0123456789ABCDE
>
> That when I execute the search I would find the 0, but I find the A.
> What is going wrong here? I am using:
>    GNU Emacs 24.2.1 (x86_64-suse-linux-gnu, GTK+ Version 3.6.4) of 2013-02-21 on build16

    What is your locale?



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [:alpha:] Does not work
       [not found] ` <mailman.13320.1391149404.10748.help-gnu-emacs@gnu.org>
@ 2014-02-01 19:20   ` Cecil Westerhof
  2014-02-01 20:18     ` Drew Adams
  0 siblings, 1 reply; 5+ messages in thread
From: Cecil Westerhof @ 2014-02-01 19:20 UTC (permalink / raw)
  To: help-gnu-emacs

Op Friday 31 Jan 2014 07:23 CET schreef Yuri Khan:

>> I would aspect that when I have the following:
>> (re-search-forward "[[:alpha:]]" nil t)
>> 0123456789ABCDE
>>
>> That when I execute the search I would find the 0, but I find the
>> A.
>
> Maybe you’re confusing with [[:alnum:]]?
>
> http://www.gnu.org/software/emacs/manual/html_node/elisp/Char-Classes.html

This page (where I got it) did:
    http://www.emacswiki.org/emacs/RegularExpression

I'll notify them. Thanks, now it works.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof


^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [:alpha:] Does not work
  2014-02-01 19:20   ` Cecil Westerhof
@ 2014-02-01 20:18     ` Drew Adams
  0 siblings, 0 replies; 5+ messages in thread
From: Drew Adams @ 2014-02-01 20:18 UTC (permalink / raw)
  To: Cecil Westerhof, help-gnu-emacs

> This page (where I got it) did:
>     http://www.emacswiki.org/emacs/RegularExpression
> 
> I'll notify them. Thanks, now it works.

I fixed it; thanks.  (FYI: Anyone, including you, can
edit the wiki page to fix something like this.)



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-02-01 20:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-31  5:54 [:alpha:] Does not work Cecil Westerhof
2014-01-31  6:23 ` Yuri Khan
2014-01-31  8:02 ` Chris F.A. Johnson
     [not found] ` <mailman.13320.1391149404.10748.help-gnu-emacs@gnu.org>
2014-02-01 19:20   ` Cecil Westerhof
2014-02-01 20:18     ` Drew Adams

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.