[mapserver-users] Validation regex question

Carlos Ruiz boolean10001 at yahoo.com
Mon Mar 2 09:03:47 PST 2020


Hello all,
Yesterday I binded Mapserver generated images on a Shiny (R) application through CGI and I had to include a VALIDATION section for being able to send values as variables for filtering. I wonder why it didn't allow me specify something like "^[TRUE|FALSE]$" or "^TRUE|FALSE$" to validate a boolean value but "^[A-Z]{4,5}$".
However, I don't know if it's possible to define some well-known regex flags in code like "[:INTEGER:]" for "^[0-9]+$", "[:DOUBLE:]" for "^[0-9]+[.][0-9]+$" or "[:BOOLEAN:]" for "^[TRUE|FALSE]$" or "^[tT|fF]$". I understand that leaving it open is more flexible and it's ok, but perhaps adding these flags can be easier to use. I don't know, what do you think ?


MSc. Carlos Ruiz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20200302/cfeb81f8/attachment.htm>


More information about the MapServer-users mailing list