[x3d-public] X3D Regex
Don Brutzman
brutzman at nps.edu
Wed Jun 6 21:15:34 PDT 2018
great to see the dialog and scrutiny, thanks!
intent is to allow legal/standard content but disallow (or at least diagnose) broken/problematic/nonstandard content.
for MFInt32,
- legal: 0 1 2 30 -0 -1 -2 -30
- illegal: 010 -020 (leading zeroes also an indicator that intermediate whitespace was dropped)
- single comma OK between numbers, but multiple commas an indicator that an intermediate number was dropped
I have the O'Reilly books on this topic, they often give good/adaptable "cookbook recipes" worth considering. can look further next week.
it is helpful to be very wary of any conclusions whatsoever without testing a regex.
if alternatives are found, great - we can test with online tools, with Netbeans/X3D-Edit, and with regression testing of the X3D Examples Archive.
all the best, Don
--
Don Brutzman Naval Postgraduate School, Code USW/Br brutzman at nps.edu
Watkins 270, MOVES Institute, Monterey CA 93943-5000 USA +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman
More information about the x3d-public
mailing list