8
I was reading the documentation to properly develop a mask and save without it.
However I came across this doubt of methods replace
and replaceAll
for my string
.
What is the difference between the two, apparently both serve the same purpose.
The difference is that the former uses a sequence of chars to make the substitution, the latter uses regex. Both are for the same purpose, only changes that.
– user28595
@diegofm less bad so there is no danger to use one or the other
– Daniel Gentil