Closed Thread Icon

Topic awaiting preservation: ASP: find dates within a string of alphabetical characters (Page 1 of 1) Pages that link to <a href="http://ozoneasylum.com/backlink?for=26242" title="Pages that link to Topic awaiting preservation: ASP: find dates within a string of alphabetical characters (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: ASP: find dates within a string of alphabetical characters <span class="small">(Page 1 of 1)</span>\

 
Hebedee
Paranoid (IV) Inmate

From: Maryland, USA
Insane since: Jan 2001

posted posted 07-14-2005 16:55

I am trying to figure out how to find an indeterminate number of dates within a string of alphabetic characters. For example:

sdfldsjj5/7/2005jdjfj;sdklfjdkfsd5-7-2005dfsdffs

Any suggestions would be appreciated.

Thanks.

WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

posted posted 07-14-2005 18:57

Do a search for regular expression libraries for ASP. A regular expression should be able to do this with no problems.

You will do a regex for your different date formats, and then you will use a findAll type function to extract all the dates into an array.

Dan @ Code Town

« BackwardsOnwards »

Show Forum Drop Down Menu