简体   繁体   中英

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])

finds CAP but not when followed by ITAL or 'CINE or when followed by a space and a world beginning with a capital letter.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM