9
Reply

regExpr

Ask a question
Marco

Marco

17 years ago
2.5k
1
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)