I'm rather new to regex and don't know perl (my background is Smalltalk of all things). Can anyone give a simpler example of replacing one string in a namespace with another to generate a valid C++ namespace? Thanks Andrew