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

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

re-search-forward strange match


From: Andreas Röhler
Subject: re-search-forward strange match
Date: Mon, 21 May 2018 19:32:37 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.7.0

Calling re-search-forward at string "foo1" like below, it matches at first char "o".

(re-search-forward "#?[xo]?[a-f0-9]+" nil t 1)foo1

Doesn't the regexp say a possible [xo] must be followed by at least one of "a-f0-9"? Where the second "o" is not a part...

Cheers,
Andreas
GNU Emacs 26.1 (build 1, i686-pc-linux-gnu, GTK+ Version 3.14.5) of 2018-04-10



reply via email to

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