regex - Regular Expression to express Date in CCYYMMDD Format -


I need a regular expression code to display the date given in CCYYMMDD format < P>

  "div class =" post-text "itemprop = "Text"> 

[0-9] [0-9] [0-9] [0-9] [0-1] [0-9] [0-3] [0-9] "< / Code>

If you know that this is limited to the near future, then you can set the first digit in 2, maybe second to 0, the third Like one and the same. -9] [0-1] [0- 9] [0-3] [0-9] "

To display a given date, I have no meaning Date of unix?

  date +% Y% m% d 20110317   

But this is not a regular expression. Hm. Well - it is, Like. :)

Comments