Fix regex used to rewrite CREATE VIEW code. Thanks to David Greco for the patch.