$re = "(?i:$re)" if $opt{i}; $re = "(?m:$re)" if $opt{m}; $re = "(?s:$re)" if $opt{s}; $re = "(?x:$re)" if $opt{x};