x Did you like it? Well, then please consider making a donation :)

Regex Tag - date

Split string to get Date and text

I have to process text file like that: text 01/01/1970 text 02/01/1970 ... etc. I want the output to be the following data: according to the docs, wrapping the string you're splitting on in () (making it a capture group) will result in these captures being included in the array.

Type: split, Date: 8/12/2015 4:38:43 PMAuthor: stackoverflow

Regular expression to extract the year (1900 - 2099) from a string

Getting year from text. If you want validate textbox value - use this pattern with "^" and "$": ^((19|20)\d{2})$

Type: match, Date: 3/28/2015 4:38:20 PMAuthor: admin