AmazonMWS1.MarketplaceWebServiceProductsConfig.Clean C# (CSharp) Method

Clean() private static method

Replace all whitespace characters by a single space.
private static Clean ( string s ) : string
s string
return string
        private static string Clean(string s)
        {
            // matched character sequences are passed to a MatchEvaluator
            // delegate. The returned string from the delegate replaces
            // the matched sequence.
            return Regex.Replace(s, @" {2,}|\s", delegate(Match m)
            {
                return " ";
            });
        }