you could use some wildcards and globbing expressions, but what are you trying to do?
it sounds like it might be a bit dangerous in that if your too general, you might replace things you DONT want to.
These two links MIGHT help you
wildcards
expressions