"I used the colon because no desktop OS would allow that in a filename, so I am safe."
Nice try. It is allowed under GNU/Linux.
More importantly, you have only given examples. You have not described what the regex is intended to do. You also have obviously pointless constructs, like (?: ), which could just be a single space.
Finally, it's unclear what role the colon actually plays, as it's not in your replacement text. Perhaps it would help if you told us what language you're using.
Matthew Flaschen
2009-06-12 18:03:17