I did figure out why you were getting those syntax errors, if you copy the code from dwoptimize. The blogger was eating some of the < and > characters even with the html "code" tag defined. Fixed now.
Comment on Re^2: Data type validation using regular expressions