Parse a Unicode vulgar fraction

Raku, 17 bytes


Try it online!

Returns a rational number type. Raku actually natively supports unicode literals and operators, though it doesn't do , so we need to substitute for that. Also, division by zero won't cause an error, but returns a value that causes an Exception when you try to use or print it.

PHP, 80 bytes

preg_match("~(\d+)/ ?(\d+)~",iconv('','US//TRANSLIT',$argn),$m);echo$m[1]/$m[2];

Try it online!

Just letting iconv do all the work for us ^^ this time PHP is competitive :O

JavaScript (ES6),  125 120  106 bytes


Try it online!