Anarkingu Gidora is a user on octodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

@kingu_platypus_gidora
When I write a regexp that works:
👉😎👉
When I see any other regexp:
😨😵😱

@Nafrondel This "What is a regexp" is part of a Google search I was doing but end up here by mistake.

My question was "What is a regexp to match japanese text?"

@kingu_platypus_gidora Did you find it? Java/JVM languages, PCRE, etc. support Unicode character classes so you can ask for `\p{Han}\p{Katakana}\p{Hiragana}` (not sure if that includes ー and 々). In JavaScript though, I like using XRegExp (though you can use it to construct the regexp once and embed that in your code :) e.g., stackoverflow.com/questions/73). I'm always looking for CJK regexp tricks 😁!

Anarkingu Gidora @kingu_platypus_gidora

@22 This page
gist.github.com/terrancesnyder
helped me.

Since I am coding in scheme, regexp support is more limited.

I ended up using this

#/[ぁ-ゔゞァ-・ヽヾ゛゜ー]/

It seerms to work so far.

· Web · 0 · 0