using System; using System.Text.RegularExpressions; public static class ClipboardFusionHelper { public static string ProcessText(string text) { text = Regex.Replace(text, "\\n", " "); text = Regex.Replace(text, "[^a-zA-Z0-9\u0080-\uFFFF.,%_–-]", " "); text = Regex.Replace(text, "(\\s+)", " "); return text; } }
text= BFS.Clipboard.CopyText();
[\\/:"*?<>|]
"[\\/:\"*?<>|]"
"[\\\\/:\"*?<>|]"