Maybe you can put that REGEX "stuff" into a user-defined function.

My attempt at a function to read fractions, no REGEX though ...

http://www.sascommunity.org/wiki/Create_an_Informat_from_a_User-Defined_Function