all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Heime <heimeborgia@protonmail.com>
To: Heime <heimeborgia@protonmail.com>
Cc: Heime via Users list for the GNU Emacs text editor
	<help-gnu-emacs@gnu.org>
Subject: Re: Regexp capturing unicode characters
Date: Wed, 31 Jul 2024 21:50:37 +0000	[thread overview]
Message-ID: <7dt77KwxEpd-n-H3ZDksh1CMkQfH10cnniy6lS3hK4lXbwVnyLKQAM602dMs2KNgvINoReUbaEpTzZG3ZlL1n8KTqEGfVk2aMtujCFOjjhs=@protonmail.com> (raw)
In-Reply-To: <dsvxyTSPY2IeArhvS10w_f4j9Hiw3A1eCZCdlBBOIvjH37zyHj8dKii8j5fTodda-SST4ecImQ7L_CE37hVNws5Tzf0Sz_-2TCGfdqALx7k=@protonmail.com>






Sent with Proton Mail secure email.

On Thursday, August 1st, 2024 at 9:24 AM, Heime <heimeborgia@protonmail.com> wrote:

> I am using unicode characters in my elisp code (e.g. foreign language symbols in icelandic
> and spanish).
> 
> Is the regexp [[:word:]] appropriate to capture them ?
> 

Although I have tried "[:multibyte:]", it did not get matches that I 
get with "[:word:]".  I am using the regexp for constructing imenu
expressions.

To match 

;; DN [główny] Sgn(Major), Lexik(Polish).

("Denotes"
   ,(concat "^;;\\s-+"
            "\\([[:word:]]+\\)\\s-+"
            "\\[\\([[:multibyte:]]+\\)\\]\\s-+") 2)




  reply	other threads:[~2024-07-31 21:50 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-31 21:24 Regexp capturing unicode characters Heime
2024-07-31 21:50 ` Heime [this message]
2024-08-01  5:15 ` Eli Zaretskii
2024-08-01 11:26   ` Heime
2024-08-01 12:10     ` Eli Zaretskii
2024-08-01 13:43       ` Heime
2024-08-01 14:30         ` Michael Heerdegen via Users list for the GNU Emacs text editor
2024-08-01 15:34         ` Eli Zaretskii
2024-08-01 17:06           ` Heime
2024-08-01 17:46             ` Eli Zaretskii
2024-08-01 19:44               ` Heime
2024-08-02  5:44                 ` Eli Zaretskii
2024-08-02  8:03                   ` uzibalqa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='7dt77KwxEpd-n-H3ZDksh1CMkQfH10cnniy6lS3hK4lXbwVnyLKQAM602dMs2KNgvINoReUbaEpTzZG3ZlL1n8KTqEGfVk2aMtujCFOjjhs=@protonmail.com' \
    --to=heimeborgia@protonmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.