I’ve got string like "X los(2) - XYZ tres"
How I can find all upper case letters and words and replace them with random numbers?
From first string I should get "2 los(2) - 6 tres" or "9 los(2) - 5 tres"
I mean that one UPPER word should becomes one single digit.
This is how I’d do it.
Use a regex to find groups of uppercase characters and replace them with a random digit between
0and9(all single digits in a decimal system).CodePad.