Please try as follows
- "When I apply to remove one at a time from the right", grab and mount this, as follows:
- ["value-1" | "value-2" | "value-3"] test and see if it works.
- Detail this can be a lot slower than removing one by one
- Put the result there, I could not test it here.
So, no, there is a programming error, not a regular expression analysis.
public class ManipulandoString{
public static void main(String[] args){
String[] vetor = {"\"Jui.ce \"", "j-90.0", "Abobr.e-u"};
String[] result = new String[3];
for(int i=0; i <vetor.length; i++)
result[i]=vetor[i].replaceAll("[.|\"|\(|\)|-]", "");
for(int i = 0; i < vetor.length; i++)
System.out.println(result[i]);
}
}
See the result, I tried to update the test, I think it's there, if not just copy from here to there.