I need to replace multiple consecutive spaces with pipe character ,I tried various regular expression but i couldn't get the output .Can anyone give me solution for this
I need to replace multiple consecutive spaces with pipe character ,I tried various regular expression but i couldn't get the output .Can anyone give me solution for this
Best Answer
Try this:
gives you this result:
DEBUG||this|is|a|multiple|spaces|sample|
To replace ONLY when you have more than one space use this:
this returns :