Regex to remove year from a string PHP
(19|20)[0-9][0-9]
This will read in only 1900 and 2000 ranged dates.
Try this one :
/\b\d{4}\b/
it will match 4 digits embeded with non-words
(19|20)[0-9][0-9]
This will read in only 1900 and 2000 ranged dates.
Try this one :
/\b\d{4}\b/
it will match 4 digits embeded with non-words