Interesting idea, certainly not crazy. I'm not sure what's possible with
regex libs commonly used with MapServer builds.
On Tue, Jul 27, 2021 at 6:34 AM Trond Michelsen <
trondmm-mapserver+2...@crusaders.no> wrote:
> This sounds like a good idea to me, but I would suggest to use named
> capture
This sounds like a good idea to me, but I would suggest to use named
capture groups. In perl, this uses this syntax: (?pattern). So,
in this example, it could be:
"datetime" "^(?[0-9]{4})[-_](?[0-9]{2})[-_](?[0-9]{2})$" # <-
3 capture groups
And the result could then be used in substitution as:
Hi All,
This is slightly related to my previous thread today, but more general.
I want to gauge interested in this idea.
I want to be able to use Runtime Substitution mechanisms to do something like
this:
MAP
...
VALIDATION
"datetime" "^([0-9]{4})[-_]([0-9]{2})[-_]([0-9]{2})$" # <- 3