[英]C# simple regex for replacing “\ / : * ? ” < > |"
hey there! 嘿! im not really into regular expressions, but i need a simple regex for replacing all of the following chars: 我不是真的正则表达式,但我需要一个简单的正则表达式来替换以下所有字符:
\\ / : * ? \\ /:*? " < > | “ <> |
thanks^^ 谢谢^^
你有它:
[\\/:*?"<>|]
here is an eg which can be helpful to u 这是一个例子,可以帮助你
CAP*!(ITAL)!('CINE)!(CAP [AZ]) CAP *!(ITAL)!('CINE)!(CAP [AZ])
finds CAP but not when followed by ITAL or 'CINE or when followed by a space and a world beginning with a capital letter. 当以ITAL或'CINE开头,或者以大写字母开头的空格和世界之后,则不查找CAP。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.