I created a database of cigarettes and trading cards. Each heading has a year associated with it. For example, 1943or 2011. A year is always 4 characters, but can be anywhere in the line.
Can someone please help me create a regex that will find the year in a string. I tried '/d{4}\b/', but it does not work.
source
share