Add options for exact or g regex