x Did you like it? Well, then please consider making a donation :)

You can specify options that control how the regular expression engine interprets a regular expression pattern. Many of these options can be specified either inline (in the regular expression pattern) or as one or more RegexOptions constants. This quick reference lists only inline options.

PatternDescriptionSampleMatches
iUse case-insensitive matching.\b(?i)a(?-i)a\w+\b"aardvark", "aaaAuto" in "aardvark AAAuto aaaAuto Adam breakfast"
mUse multiline mode. ^ and $ match the beginning and end of a line, instead of the beginning and end of a string. --
nDo not capture unnamed groups.--
sUse single-line mode.--
xIgnore unescaped white space in the regular expression pattern. \b(?x) \d+ \s \w+"1 aardvark", "2 cats" in "1 aardvark 2 cats IV centurions"