I get a string from XML likebelow:
This is the Sample text I need to get
all this but only with single spaces
Actually I am using the following reg-ex which is converting matching pattern to white space but I need them to be stripped not replaced by white space.
The above string should be output:
This is the Sample text I need to get all this but only with single spaces