Skip to content

Regex

https://learn.microsoft.com/en-us/visualstudio/ide/using-regular-expressions-in-visual-studio?view=vs-2022

patterns

  • \d matches decimal digit character

  • \s+ catches at least one space

  • \b words with a boundary

  • \w+ gives us a word

  • \r?\n line break

examples

^\d+$\n matches number in a separate line