Fix that regex optimization