1

I have read

  1. MSDN Documentation on Regular Expression Syntax

  2. Stack Overflow question Search and replace in Visual Studio

But these did not help me.

I want to match the simplest string in the entire universe, "0:n", "1:n", "2:n", etc. I have tried the following Visual Studio 2012 regular expression.

{:d+}:n

This does not return any results (and there are results). What am I doing wrong?

Community
  • 1
  • 1
MoonKnight
  • 23,214
  • 40
  • 145
  • 277

1 Answers1

5

You've been looking at documentation for outdated versions of Visual Studio.

Starting with VS 2012, the "standard" regex syntax is supported, more precisely the .NET flavor.

So, for your example, the regex would be \d+:n\b.

Tim Pietzcker
  • 328,213
  • 58
  • 503
  • 561
  • 2
    Yeah, always be sure to check near the top of the MSDN page for the version the doc applies to. To the right of that version there is typically a link that permits you to switch to a different version of VS. The doc may or may not change depending on what MS changed from version to version. – Kenneth K. Apr 10 '13 at 11:38