string pattern matching
VS2005
string stringPattern = "^\\d{2}-\\d{1}-\\d{4}$";
i found this sample in the net while studying string pattern matching. i just want to know what ^ and $ means? and \d works for numbers.. what if im matching with characters?
Scott LyslePosted Feb 1, 2007, 10:13 AM
Here is a resource that will help you out with regular expressions:
http://regexlib.com/Default.aspx