-3
How could I mount a regex for a random string. For example if I were to take every word that was in this format in a string,
02ef6308-72da-491a-86b3-884a9e6bd959
I did so, but it did not work to get this result. What is wrong?
Regex r = new Regex(@"[A-Za-z0-9]{8}-[A-Za-z0-9]{4}-[A-Za-z0-9]{4}-[A-Za-z0-9]{4}-[A-Za-z0-9]{12}-");
There is even this
-
in the end?– tvdias
Important you [Dit] your question and explain objectively and punctually the difficulty found, accompanied by a [mcve] of the problem and attempt to solve. To better enjoy the site, understand and avoid closures and negativities worth reading the Stack Overflow Survival Guide in English.
– Bacco