Marco

Marco

  • NA
  • 59
  • 0

regExpr

Sep 19 2007 7:35 PM
Hello, I have to define a reg expression and I read one way is to use verbatim keyword to avoid to use backslash for escape caracter (I think it's more thin). But maybe It's not so better. How do use it? I have to define something line [^abc\n"]* and I'm confused now:
       Regex regexpr = new Regex(@"[^abc\n"]*");
is it correct? How can I insert " inside verbatim string? It gets error because it expects the end of string......
thanks.

Answers (9)