so problem writing code detect american addresses within text. come across problem cases 10.08.2013 can potentially house numbers since in algorithm use isdigit() numbers , have less 5 digits marked house numbers. there way exclude such digits not mistaken house numbers?
you should pattern match using regular expressions. can learn how use regular expressions c++ here.
so each line retrieve file, or may gathering data, can check against pattern determine if date.
this reference.
this should looking for: ".^[0-9]{2}.[0-9]{2}.[0-9]{4}$."
Comments
Post a Comment