Set regex option