Are you trying to do client or server side validation? Regex isn't very good at preventing patterns. It is better for forcing a particular pattern. I can come up with a work around for you, but it depends on the type of validation you are using.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.