I have this regexp: (\d{4})\/(\d{2,4})\/?(\w{2})? which seems to work properly, but I want to avoid the cases in which for example: I have a string "2020/2000/WEEEE" and it matches it.
Other wrong example that it matches: "IEN/BSK-2020/143999" .
How can I avoid this and take only the strings with the specified format from above? "YYYY/NNNN" and "YYYY/NNNN/Country code"