Thursday, April 27, 2006

\\\\ + c# + regexp >> \

Persze nyilvanvalo, mint ahogy itt le is van irva, de azert idemasolom nehogy megint elfelejtsem:

In literal C# strings, as well as in C++ and many other .NET languages, the backslash is an escape character. The literal string “\\” is a single backslash. In regular expressions, the backslash is also an escape character. The regular expression \\ matches a single backslash. This regular expression as a C# string, becomes “\\\\”. That’s right: 4 backslashes to match a single one.