I have created a database of cigarette and trading cards. Each set title has a year associated with it. For example, 1943
or 2011
. The year is always 4 characters long, but can be anywhere in the string.
Could someone please help me create a regex that will find the year in the string. I tried '/d{4}\b/'
but it is failing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With