What's the meaning of @ character in Regular expression pattern ?
-
Hi all. I want to know What the meaning of @ character is in Regular expression pattern? :doh: Like this :
Regex.Replace(str , @"pattern", "");
Thanks in advanced .
-
Hi all. I want to know What the meaning of @ character is in Regular expression pattern? :doh: Like this :
Regex.Replace(str , @"pattern", "");
Thanks in advanced .
Hi, The @ symbol is 'nothing' to do with the actual pattern... it is placed in front of a string to tell the compiler to ignore all escape characters (backslashes: \) contained within the string. "\n" <- newline character @"\n" <- \n
Matthew Butler
-
Hi, The @ symbol is 'nothing' to do with the actual pattern... it is placed in front of a string to tell the compiler to ignore all escape characters (backslashes: \) contained within the string. "\n" <- newline character @"\n" <- \n
Matthew Butler
Thanks Matthew. Your answer was useful. ;)