Answer the question
In order to leave comments, you need to log in
What regular expression can be used here?
data = data.replaceAll(", 6", ",\n6");
data = data.replaceAll(",6", ",\n6");
data = data.replaceAll(", 6", ",\n6");
data = data.replaceAll(", 5", ",\n5");
data = data.replaceAll(", 7", ",\n7");
data = data.replaceAll(", 8", ",\n8");
How can these strings be replaced with a regular expression?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question