Regex to remove all special characters from string?

前端 未结 9 1409
谎友^
谎友^ 2020-12-04 15:15

I\'m completely incapable of regular expressions, and so I need some help with a problem that I think would best be solved by using regular expressions.

I have list

9条回答
  •  星月不相逢
    2020-12-04 15:49

    For my purposes I wanted all English ASCII chars, so this worked.

    html = Regex.Replace(html, "[^\x00-\x80]+", "")
    

提交回复
热议问题