public static string ExtractValue(string rawValue) { if (rawValue == string.Empty || rawValue == Regex) { return null; } else { return new Regex(@"[a-zA-z\s]*").Replace(rawValue, string.Empty); } }
if (rawValue == string.Empty || rawValue == Regex) { return null; }
if (string.IsNullOrWhiteSpace(rawValue)) { return null; }
rawValue == Regex
Regex rgx = new Regex(pattern, RegexOptions.IgnoreCase); MatchCollection matches = rgx.Matches(input); if (matches.Count > 0) { //code }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)