The Emacs documentation has a section on character classes. According to the manual, [:digit:]
should match any digit character. I've tried that using re-builder
but they never match, even though [0-9]
matches.
How do I use character classes in an Emacs regex?
I figured it out. The documentation is actually explicit:
Here is a table of the classes you can use in a character alternative
So [[:digit:]]
is the right way to use character classes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With