-
Notifications
You must be signed in to change notification settings - Fork 0
/
Remove-Characters.cs
26 lines (25 loc) · 1.21 KB
/
Remove-Characters.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System;
public static class ClipboardFusionHelper
{
public static string ProcessText(string text)
{
return text.Replace(" ","-") //space
.Replace(":","-") //colon
.Replace(";","-") //semi-colon
.Replace("\\","-") //Backslash
.Replace("/","-") //Slash
.Replace("&","-") //Ampersand
.Replace("%","-") //Percent
.Replace("?","-") //QuestionMark
.Replace("—","-") //Em dash
.Replace("–","-") //En dash (kindof redundant)
.Replace("“","-") //Smart Quote
.Replace("”","-") //Smart Quote
.Replace("’","-") //Typographic apostrophe
.Replace("[","-") //Left Bracket
.Replace("]","-") //Right Bracket
.Replace("®","-") //Registered TradeMark
.Replace("*","-") //star
.Replace("#","-"); //number sign / pound / hash / Octothorp
}
}