On 03.10.2023 10:55, Stuart Clark wrote:
In reality both will do the same thing, although the second is technically more correct.The first regular expression is matching "5" followed by 1 or more other characters, while the second is matching "5" followed by exactly 2 numbers. So the first one would also match "50" or "5frogs" which aren't valid status codes, but in reality your application would have to be having serious problems to be setting those values anyway.
Thanks StuartIs there any docs about this type of regex? I didn't found "\\d" in official docs.
How is this regex called? cheers Jason -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/988b8358-d588-4120-8768-d8c7f29fe8f5%407748229.xyz.
OpenPGP_0x0D0C34B5DF58FE9D.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature

