Hi,
Say I have a string with the format:
s = " one: two, three: four, five: six "
How do I use replaceAll to replace "one", "three", and "five" with "" without having to resort to s.replaceAll("one", "").replaceAll("three", "").replaceAll("six","");
That is, how do I combine all three replaceAll calls into one call?
Thanks
Say I have a string with the format:
s = " one: two, three: four, five: six "
How do I use replaceAll to replace "one", "three", and "five" with "" without having to resort to s.replaceAll("one", "").replaceAll("three", "").replaceAll("six","");
That is, how do I combine all three replaceAll calls into one call?
Thanks