Matching dates


show more Matching dates provides you with in-depth training on Developer. Taught by Kevin Skoglund as part of the Using Regular Expressions show less
please wait ...

Matching dates

In this movie, we'll learn to write a regular expression to match dates. And the formats for the dates we're going to use are going to be year, followed by month, followed by date. And obviously, if you wanted them in a different order, month-date-year for example, you would just know that you needed to swap them around, but we're going to stick to this format: year, then month, then date. So for example, 2000-11- 15; that would be a date. We have the year, 11 for the month, November, and then 15 for the date inside November. So, November 15th, 2011.

Of course, it can be a one digit number in front of each of those, not a two digit number, but we could have 2000-6-9, or 2000-06-09. We could have some leading zeros in front of those. We could also have different delimiters. So instead of the dashes, we could have these slashes; 2000/6/9. All of these are valid dates, and we're going to write a regular expression that will match all of them. So to start out with, like we've ...

Matching dates
Video duration: 7m 49s 5h 36m Intermediate

Viewers:

Matching dates provides you with in-depth training on Developer. Taught by Kevin Skoglund as part of the Using Regular Expressions

Subject:
Developer
Software:
Regular Expressions
Author:
please wait ...