refactored modes regex