I have an issue about regex This is my string str = 'tat"
and I'm using regex for(我有一个关于正则表达式的问题,这是我的string str = 'tat"
,我正在使用正则表达式)
javascript:(javascript:) str = str.replace(/[^\w\\-]+/g, ''); => result: tt
c#:(C#:) str = (new Regex(@"[^\w\\-]+")).Replace(str, ""); => result: tat
I want to make result of C# like javascript, Please help me.(我想使C#的结果像javascript,请帮助我。)
Thanks so much(非常感谢)
ask by Minh Hai Vu translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…