What does this regex expression do?
Posted
by Ranjeet
on Stack Overflow
See other posts from Stack Overflow
or by Ranjeet
Published on 2010-03-31T08:04:03Z
Indexed on
2010/03/31
8:13 UTC
Read the original article
Hit count: 335
Hi All,
I am looking after fixing a bug and there I find this expression:-
directoryPath = Regex.Replace(directoryPath, "[^\\w\\.@-]", "");
but as a result of the expression all the high ascii characters in directory path are messed up, I am not good at regex and dont know about it but for now I have to fix the issue .
Can someone please explain me what this regular expression does?
© Stack Overflow or respective owner