Given text data in the following format:
We can use regular expressions to retrieve the last two digits of the date (in this case,
To do this, we need to use the
[a-zA-Z0-9] wildcard character, which matches any letter or number. We can then specify that we only want the last two characters of the date.
The following regular expression should do the trick:
This expression will match the last two characters of any string that contains only letters and numbers.