0

Here's what I want: a regex expression that can match the word "hello" in any font and case. So it would match Hello, heLLo, HelLo, , , etc.

This is for a Discord bot that is written in Javascript, but I enter the regex via commands on Discord.

I feel like I'm close with Unicode, but can't quite find an answer. I'm very new to this, but here are the resources I've already explored:
Regular expression to match non-ASCII characters
Regex any ASCII character
https://www.regular-expressions.info/unicode.html

I've used [\u00BF-\u1FFF\u2C00-\uD7FF\w]{h} but it doesn't match the strange fonts.

Sagar V
  • 12,158
  • 7
  • 41
  • 68
bxpana
  • 1

1 Answers1

0

This matches all of your samples.

/([^\x00-\x7F]?\w?)/"ug