Your current regex currently allows zero or one period, so this part is fine.
Bear Bibeault wrote:Can there be no decimal point?
J. Kevin Robbins wrote:Thanks, Henry.
Shahir does that help?
Are you aware of this site? It's great for testing this sort of thing.
I still recommend you look into using jQuery and the validation plugin, if that's an option for you. It makes client-side validation of form fields very simple.
J. Kevin Robbins wrote:I assume you are looking for a regex that will do this. What have you tried?
Jaikiran Pai wrote:What class and what method is that? Is that an auto generated method? Also, please post the entire exception stacktrace.
Paul Clapham wrote:That sounds like a bug in the process which creates those documents. In which case you should notify the people producing them -- you have a pretty good description of the circumstances under which the bug occurred, I would say.
William Brogden wrote:My question would be where are these zero bytes coming from. Who or what is writing this XML in the first place?
Bill