using System;
using System.Text.RegularExpressions;
public static class ClipboardFusionHelper
{
public static string ProcessText(string text)
{
Regex email = new Regex(@"[[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4})[\]];?", RegexOptions.IgnoreCase);
Match isMatch = email.Match(text);
MatchCollection matchList = email.Matches(text);
String rtrn = text;
if(isMatch.Success){
rtrn = String.Empty;
foreach(Match match in matchList){
rtrn += match.Groups["email"] + " ";
}
}
return rtrn;
}
}