in reply to Regex checking text is made up of the keys of a hash.
Thanks to everyone who replied to this posting, I eventually adopted the solution from blakem
but my thanks goes to all of you!