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
    Thank you all for replying so quickly... I apologize for not supplying what I had tried; I haven't been thinking too clearly as I am finishing the last month of my paramedic school and my mind quickly turning to mush :| I will play around with the ideas here this afternoon... Thank you again, Eric