regex-utc-date

1.1.0 • Public • Published

regex-utc-date

NPM version build status Test coverage Downloads

Regular expression for UTC date.

Installation

npm install regex-utc-date

Usage

var regex = require('regex-utc-date');
 
regex().test('Sun, 07 Dec 2014 09:44:50 GMT');
// => true
 
var match = regex().exec('Sun, 07 Dec 2014 09:44:50 GMT');
match[0] // => 'Sun, 07 Dec 2014 09:44:50 GMT'
match[1] // => 'Sun'
match[2] // => '07'
match[3] // => 'Dec'
match[4] // => '2014'
match[5] // => '09:44:50'
match[6] // => '09'
match[7] // => '44'
match[8] // => '50'

Contributors

See Also

License

MIT

Package Sidebar

Install

npm i regex-utc-date

Weekly Downloads

1

Version

1.1.0

License

MIT

Last publish

Collaborators

  • yoshuawuyts