in reply to exercise in regex
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: exercise in regex
by hiddengeek (Novice) on Apr 30, 2003 at 18:31 UTC |