I am cleaning a dataset using Google Refine. I have one column with dates in the mm/dd/yyyy format. I want to create a new column in which mm/dd/yyyy is replaced by yyyy only.
I have tried
value.replace(/.+(\d\d\d\d)\*/, /$1/)
and what showed up was
Error: replace expects 3 strings, or 1 string, 1 regex, and 1 string
Why does this error show up? Thank you for helping a beginner!