I know how to make a regex case-insensitive. This is not about case but about character width. I'm looking for something that is width-insensitive. In Japanese, you have half-width and full-width characters (consider 0123 vs 0123 or ABCD vs ABCD). You can make SQL Server databases width-insensitive with _WI (or width-sensitive with _WS). I was hoping there would be something similar for a regex.
I'm trying to find birth dates where the numbers can be half and full width. Here's an illustration of the problem
For a more specific date matching problem, here's another illustration:
So while \d{4} finds instances of 4 digits, it will not find 4 full-width digits, etc. The workaround I've found is to do something like [0123456789|\d]{4} like so:
But that feels really dirty. Is there a better way to do this?


