I'm thin, spaces should be removed, for example:
ValidationRegEx = "\d{13}|\d{10}"
Otherwise, the space characters become part of the line you are matching (i.e. 13 digits followed by a space, or a space followed by ten digits).
You can also try to simplify the expression as follows:
ValidationRegEx = "\d{10}\d{3}?"
(ten plus three optional digits required).
dasblinkenlight
source share