Very convenient. :^) You can make a password that matches many different strings... These all show "true": MessageBox.Show(IsInputMatch("Anything that you like", ".*")); MessageBox.Show(IsInputMatch("I mean anything", ".*")); MessageBox.Show(IsInputMatch("Really whatever you want", ".*")); MessageBox.Show(IsInputMatch("", "(hello)?")); MessageBox.Show(IsInputMatch("hello", "(hello)?")); MessageBox.Show(IsInputMatch("asdf", "....")); MessageBox.Show(IsInputMatch("1234", "....")); MessageBox.Show(IsInputMatch("baad", "....")); MessageBox.Show(IsInputMatch("oops", "....")); MessageBox.Show(IsInputMatch("1234", "\\d+")); MessageBox.Show(IsInputMatch("0", "\\d+")); MessageBox.Show(IsInputMatch("987489792364587634582345983745", "\\d+"));
Despite everything, the person most likely to be fooling you next is yourself.