You aren't specific if these dates are stored individually in variables or part of a larger string.
Here is a pretty generic solution:
s|(../../)(..)|${1}20${2}|;
You may need to be more specific like replacing the .(dots) with digit metacharacters.
Good luck.
In reply to Re: exercise in regex
by pzbagel
in thread exercise in regex
by hiddengeek
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |