: I'm looking to see a simple demonstration of the A Star Algorithm in C#. Can any one direct me to some good information. I did download a project from this site that did the a *, but it was missing a file so I wasn't able to see how it was implemented.
:
: Thanks,
: J
:
I've used regular expression for that. Like this:
string pattern = "foo*.jpg";
string haystack = "foo_bar.jpg";
string regexPattern = pattern.Replace("*", "(.*?)");
Regex regex = new Regex(regexPattern);
if (regex.Matches(haystack))
{
MessageBox.Show("Match found: " + haystack);
}