Better date parsing, some combinatorial explosion
This commit is contained in:
parent
5f00a54b60
commit
ee5d7b5d6f
|
@ -4,7 +4,7 @@
|
|||
<array>
|
||||
<dict>
|
||||
<key>regexp</key>
|
||||
<string>^(.*\D|)\d\d\d\d(\D{0,2})\d\d?(\D{0,2})\d\d?(\D?\s\D?)\d\d?(\D?)\d\d(\D?)\d\d(\s+)[APap][mM](\W.*|)$</string>
|
||||
<string>^(.*\D|)\d\d\d\d(\D)\d\d?(\2)\d\d?(\D*\s\D*)\d\d?(\D?)\d\d(\5)\d\d(\s+)[APap][mM](\W.*|)$</string>
|
||||
<key>comment</key>
|
||||
<string>4 digit year, seconds, AM/PM</string>
|
||||
<key>formats</key>
|
||||
|
@ -15,7 +15,7 @@
|
|||
</dict>
|
||||
<dict>
|
||||
<key>regexp</key>
|
||||
<string>^(.*\D|)\d\d\d\d(\D{0,2})\d\d?(\D{0,2})\d\d?(\D?\s\D?)\d\d?(\D?)\d\d(\s+)[APap][mM](\W.*|)$</string>
|
||||
<string>^(.*\D|)\d\d\d\d(\D)\d\d?(\2)\d\d?(\D*\s\D*)\d\d?(\D?)\d\d(\s+)[APap][mM](\W.*|)$</string>
|
||||
<key>comment</key>
|
||||
<string>4 digit year, no seconds, AM/PM</string>
|
||||
<key>formats</key>
|
||||
|
@ -26,7 +26,7 @@
|
|||
</dict>
|
||||
<dict>
|
||||
<key>regexp</key>
|
||||
<string>^(.*\D|)\d\d\d\d(\D{0,2})\d\d?(\D{0,2})\d\d?(\D?\s\D?)\d\d?(\D?)\d\d(\D?)\d\d(\D.*|)$</string>
|
||||
<string>^(.*\D|)\d\d\d\d(\D)\d\d?(\2)\d\d?(\D*\s\D*)\d\d?(\D?)\d\d(\5)\d\d(\D.*|)$</string>
|
||||
<key>comment</key>
|
||||
<string>4 digit year, seconds, no AM/PM</string>
|
||||
<key>formats</key>
|
||||
|
@ -37,7 +37,7 @@
|
|||
</dict>
|
||||
<dict>
|
||||
<key>regexp</key>
|
||||
<string>^(.*\D|)\d\d\d\d(\D{0,2})\d\d?(\D{0,2})\d\d?(\D?\s\D?)\d\d?(\D?)\d\d(\D.*|)$</string>
|
||||
<string>^(.*\D|)\d\d\d\d(\D)\d\d?(\2)\d\d?(\D*\s\D*)\d\d?(\D?)\d\d(\D.*|)$</string>
|
||||
<key>comment</key>
|
||||
<string>4 digit year, no seconds, AM/PM</string>
|
||||
<key>formats</key>
|
||||
|
@ -48,7 +48,7 @@
|
|||
</dict>
|
||||
<dict>
|
||||
<key>regexp</key>
|
||||
<string>^(.*\D|)\d\d\d\d(\D{0,2})\d\d(\D{0,2})\d\d(\D.*|)$</string>
|
||||
<string>^(.*\D|)\d\d\d\d(\D)\d\d(\2)\d\d(\D.*|)$</string>
|
||||
<key>comment</key>
|
||||
<string>4 digit year, date only</string>
|
||||
<key>formats</key>
|
||||
|
@ -59,7 +59,7 @@
|
|||
</dict>
|
||||
<dict>
|
||||
<key>regexp</key>
|
||||
<string>^(.*\D|)\d\d?(\D{0,2})\d\d?(\D{0,2})\d\d?(\D?\s\D?)\d\d?(\D?)\d\d(\D?)\d\d(\s+)[APap][mM](\W.*|)$</string>
|
||||
<string>^(.*\D|)\d\d?(\D)\d\d?(\2)\d\d?(\D*\s\D*)\d\d?(\D?)\d\d(\5)\d\d(\s+)[APap][mM](\W.*|)$</string>
|
||||
<key>comment</key>
|
||||
<string>2 digit year, seconds, AM/PM</string>
|
||||
<key>formats</key>
|
||||
|
@ -72,7 +72,7 @@
|
|||
</dict>
|
||||
<dict>
|
||||
<key>regexp</key>
|
||||
<string>^(.*\D|)\d\d?(\D{0,2})\d\d?(\D{0,2})\d\d?(\D?\s\D?)\d\d?(\D?)\d\d(\s+)[APap][mM](\W.*|)$</string>
|
||||
<string>^(.*\D|)\d\d?(\D)\d\d?(\2)\d\d?(\D*\s\D*)\d\d?(\D?)\d\d(\s+)[APap][mM](\W.*|)$</string>
|
||||
<key>comment</key>
|
||||
<string>2 digit year, no seconds, AM/PM</string>
|
||||
<key>formats</key>
|
||||
|
@ -85,7 +85,7 @@
|
|||
</dict>
|
||||
<dict>
|
||||
<key>regexp</key>
|
||||
<string>^(.*\D|)\d\d?(\D{0,2})\d\d?(\D{0,2})\d\d?(\D?\s\D?)\d\d?(\D?)\d\d(\D?)\d\d(\D.*|)$</string>
|
||||
<string>^(.*\D|)\d\d?(\D)\d\d?(\2)\d\d?(\D*\s\D*)\d\d?(\D?)\d\d(\5)\d\d(\D.*|)$</string>
|
||||
<key>comment</key>
|
||||
<string>2 digit year, seconds, no AM/PM</string>
|
||||
<key>formats</key>
|
||||
|
@ -98,7 +98,7 @@
|
|||
</dict>
|
||||
<dict>
|
||||
<key>regexp</key>
|
||||
<string>^(.*\D|)\d\d?(\D{0,2})\d\d?(\D{0,2})\d\d?(\D?\s\D?)\d\d?(\D?)\d\d(\D.*|)$</string>
|
||||
<string>^(.*\D|)\d\d?(\D)\d\d?(\2)\d\d?(\D*\s\D*)\d\d?(\D?)\d\d(\D.*|)$</string>
|
||||
<key>comment</key>
|
||||
<string>2 digit year, no seconds, AM/PM</string>
|
||||
<key>formats</key>
|
||||
|
@ -111,7 +111,7 @@
|
|||
</dict>
|
||||
<dict>
|
||||
<key>regexp</key>
|
||||
<string>^(.*\D|)\d\d?(\D{0,2})\d\d(\D{0,2})\d\d(\D.*|)$</string>
|
||||
<string>^(.*\D|)\d\d?(\D)\d\d(\2)\d\d(\D.*|)$</string>
|
||||
<key>comment</key>
|
||||
<string>2 digit year, date only</string>
|
||||
<key>formats</key>
|
||||
|
|
Loading…
Reference in New Issue
Block a user