make regex static