Stream: implementers
Topic: datatype regexes missing String start/end
Patrick Werner (Jun 06 2019 at 08:48):
While implementing validity checks into on of our frontends i stumbled upon the data type regexes. Aren't there ^ and $ for string start and end missing?
e.g. the current decimal regex validates something like this: 121323,45asd (regexr.com/4fbf0)
Patrick Werner (Jun 06 2019 at 08:48):
with ^and$ it isn't valid anymore: regexr.com/4fbf6
Patrick Werner (Jun 06 2019 at 14:33):
nvm, i found this:
- The regexes should be qualified with start of string and end of string anchors based on the regex implementation used (e.g. caret '^' and dollar-sign '$' for JavaScript, POSIX, XML and XPath; '\A' and '\Z' for .NET, Java, Python and others; please verify these definitions with the regex implementation used).
on the datatype definition page.
Grahame Grieve (Jun 07 2019 at 04:38):
... I so love regex....
Patrick Werner (Jun 18 2019 at 12:07):
:smiling_devil:
Last updated: Apr 12 2022 at 19:14 UTC