Port regex changes to strict ISO C