in reply to Variable in regex...
A similar question has come up recently: Opening files, comparing strings. Should be simple!?