Regex: How to match a unix datestamp?

Posted by Jono on Stack Overflow See other posts from Stack Overflow or by Jono
Published on 2011-03-18T08:08:28Z Indexed on 2011/03/18 8:09 UTC
Read the original article Hit count: 255

Filed under:
|

I'd like to be able to match this entire line (to highlight this sort of thing in vim): Fri Mar 18 14:10:23 ICT 2011. I'm trying to do it by finding a line that contains ICT 20 (first two digits of the year of the year), like this: syntax match myDate /^*ICT 20*$/, but I can't get it working. I'm very new to regex. Basically what I want to say: find a line that contains "ICT 20" and can have anything on either side of it, and match that whole line. Is there an easy way to do this?

© Stack Overflow or respective owner

Related posts about regex

Related posts about vim