[android-developers] Re: Replacing double whitespace with single whitespace

2012-11-14 Thread Brian Hoffmann
It might be better to use a meaningful regular expression. Or you could try to first remove all whitespaces and then add one between each pair of non-whitespaces. Besides, this isn't actually an Android-related question, is it? Am Dienstag, 6. November 2012 14:49:26 UTC+1 schrieb Solo: Given a

[android-developers] Re: Replacing double whitespace with single whitespace

2012-11-14 Thread David Eggman
Hi , I am so green at android this is my first programming line, but it seems to me you should simply add the following line at the end of the sequence: editTextInputDataTemp = editTextInputDataTemp.replaceAll( , ); which'll effectively strip the double spaces you've added yourself :) Why