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
Using a RegularExpression to match web (HTML code).
Type: match, Date: 3/27/2015 4:21:44 PMAuthor: admin