4

I'm looking for a pattern equivalent to \w, and which doesn't match numeric pattern. I cannot use [a-zA-Z] because I would like it to match japanese kanjis as well.

Is there a way to write something like [\w^[0-9]] ? Is there an equivalent of [:alpha:] in python regex?

1 Answer 1

11
[^\W\d]

Throw out non-word characters and throw out digits. Keep the rest.

Sign up to request clarification or add additional context in comments.

2 Comments

I honestly bow before your greatness :)
Excellent. This throws out ALL Unicode digit characters, not just the ASCII [0-9].

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.