(?x) // Turn on modifier x until the end of the containing group(?-x) // Turn off modifier x until the end of the containing group(?x:...) // Turn on modifier x for the section(?-x:...) // Turn off modifier x for the section// Relevent modifiers are i (ignore case) and x (extended regex).// You may group more than one modifier together