replacing mixed date formats to default mySQL date
Posted: Wed Feb 10, 2010 11:20 pm
Hello!
I have an issue regarding a find & replace of mixed date formats in a csv file to a default mysql format. I've attempted to use something like the following regular expression (regexp) with no success.
FIND: \([1-9]|0[1-9]|1[012]\)[- /.]\([0-9]|0[1-9]|[12][0-9]|3[01]\)[- /.]\((19|20)[0-9]+\)
REPLACE: \3\-\1\-\2
[x] Regular Expressions
POSIX turned off
It's probably something obvious, but my brain fails to see it.
For those of you that care, I'm a longtime TextPad user, I've RTFM, plus searched on the forum and the web for an answer first, failing to find one that works.
Any help with this is greatly appreciated.
I have an issue regarding a find & replace of mixed date formats in a csv file to a default mysql format. I've attempted to use something like the following regular expression (regexp) with no success.
FIND: \([1-9]|0[1-9]|1[012]\)[- /.]\([0-9]|0[1-9]|[12][0-9]|3[01]\)[- /.]\((19|20)[0-9]+\)
REPLACE: \3\-\1\-\2
[x] Regular Expressions
POSIX turned off
It's probably something obvious, but my brain fails to see it.
For those of you that care, I'm a longtime TextPad user, I've RTFM, plus searched on the forum and the web for an answer first, failing to find one that works.
Any help with this is greatly appreciated.