extractYear

Extracts the year from a string using a regular expression.

Return

The extracted year as an integer, or null if no match is found.