There are 18 vulgar fraction symbols and I would like to match them in regex.
Is this the best way listing them all
/[¼½¾⅐⅑⅒⅓⅔⅕⅖⅗⅘⅙⅚⅛⅜⅝⅞]/
They are Unicode characters.
¼½¾ have the continuous Unicode values (from \u00BC to \u00BE), and the rest (⅐⅑⅒⅓⅔⅕⅖⅗⅘⅙⅚⅛⅜⅝⅞) have the continuous Unicode values (from \u2150 to \u215E).
You can use this [\u00BC-\u00BE\u2150-\u215E].
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