I need to find two adjacent repeating digits in a string and replace with a single one. How to do this in Java. Some examples:
123345 should be 12345
77433211 should be ...
I've got a regex .replaceAll("(\r\n|\n)", "< br />")); which replaces all \n and replaces with < br/>.
The thing I wanted here, is to replace more than one \n in a row ...
Please help me, I have been in this mess since long now. I have 2 files, one from which i pick up text and the other which i span to replace the text in. i was tryin it with regular expressions but i failed without any error messages. please help. Creating scenario below: I have a variable calculated substrVersion inside a ...