2
I have the following string:
string = "Este aqui é o valor do cliente 000.000.00 01";
I need to create a function, that "Search" inside that string that contains letters and numbers if there is a field with this format "000.000.000 00"
, if it exists, it changes to the value I will set in another string, for example, if it finds, it arrow "129.000.000 02"
.
P.S: Remembering that he needs to leave the points and spaces like this one, and only change after the .
(points) and spaces, otherwise my report does not read.
Did you ever try anything with
RegEx
? Perhaps you’d better put the code of your attempt to help answer.– dang
I wonder if you can stop asking questions with exclamations! I’ve edited a couple, and it’s very strange... :/
– brasofilo
@brasofilo I edited the others :D
– Maniero
The @brasofilo is so upset that changed the
?
of the question itself by an exclamation also :) (pudera, is so!
contaminating :P )– Bacco
OK Amigo...@Dang, I didn’t try with REGEX, because I don’t know how to mount this function to locate a given field within a string, because the values will never be the same, you understand ?
– user7605
I edited several too! @brasofilo
– bfavaretto
See, 7605, your exclamations so frying the staff, jjjjj
– brasofilo