VBScript - regular expression for date in DD MONTH CCYY format?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • missnoname
    New Member
    • Jul 2007
    • 1

    VBScript - regular expression for date in DD MONTH CCYY format?

    Hi. Does anybody know what regular expression to use for a date that is in dd month ccyy format? For example, 13 January 2006. Thanks.
  • danp129
    Recognized Expert Contributor
    • Jul 2006
    • 323

    #2
    Add the rest of the months below. Also change [0-9]{1,2} to [0-9]{2} if you will always have 2 digit days (01...09...31).

    [0-9]{1,2}\s(?:janua ry|february|mar ch)\s[0-9]{4}

    Comment

    Working...