First string is
string str1 ="aaa sdf xxx fgd bbb efg rrr";
second string
string str2 ="ddd qwe ccc fgd eee ehj";
What should be the RegEx pattern ,Which say str1 and str2 are identical by pattern.
string pattern = "---------";
if(Regex.Match(str1 , pattern).Success== Regex.Match(str2 , pattern).Success)
{
return true;
}
if string like this
string str1 = "afa fff fss fgd bfb efg rrr";
string str2 = "sdf qwe cfc fgd ege ehj";
the code should return false