Home Documentation Download Order

Regent Regent

Visual Studio regular expressions

Visual Studio's Find and Replace dialog Find and Replace dialog in Microsoft Visual Studio (2005, 2008 and 2010 editions) supports specific regular expression language.

Curly braces are used to tag expressions and up to 9 expressions are supported - {1}{2}{3}{4}{5}{6}{7}{8}{9} works, but {1}{2}{3}{4}{5}{6}{7}{8}{9}{10} doesn't.

Additional string patterns are supported. For example, :q matches both 'single' and "double" quotes, :i matches C/C++ identifiers.

Prevent match can be used as negative lookahead and negative lookbehind. Having a++; a--; a + 1; a - 1;, a~( ) will match only first two a symbols. ~( )[+] will match only first two + symbols, but not the third one.