On 6/1/23 03:47, Uday Kumar wrote:
Our Requirements:
[...]
3. Allowed Characters are Alphanumeric which are *URL safe* [can be lowercase, uppercase in case of alphabets]
[...]This time you didn't mention a requirement of exactly 20 characters. If that's not strictly required, it's worth pointing out that the hyphen character '-' is also URL safe.
So in that case you could just use the standard 36-character representation of a UUID, with its four hyphens. It would save you the trouble of regex matching and substitution, as Guillaume spelled out.
Best, Geoff -- ** * * UPLEX - Nils Goroll Systemoptimierung Scheffelstraße 32 22301 Hamburg Tel +49 40 2880 5731 Mob +49 176 636 90917 Fax +49 40 42949753 http://uplex.de
OpenPGP_signature
Description: OpenPGP digital signature
_______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
