How-to-simply...

Write regexp to add missing sentence dots in exception messages

  • 1 In Visual Studio 2012 Ctrl+Shift+H
  • 2 Tick Use Regular Expressions
  • 3 Find what: Exception\((.*)(".*[^.]{1})"
  • 4 Replace with: Exception($1$2."
  • N $1 in Replace with is referencing first unescaped parenthesis pair (.*) from Find what

References