remove regex categories library. Revert to use native APIs