Implementation of option methods for global for 'g', insensitive for 'i' and multiLine for 'm'
merge