Refactored postfix regex