vendredi 31 décembre 2021

Generate random string using regular expression condition using Java [closed]

I want to generate random string using this regular expression

[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}

and generate the string like this eg: 66912e1b-7cae-49e4-a342-211223133628. using Java i need to implement, can you suggest best way to achieve this.




Aucun commentaire:

Enregistrer un commentaire