Search This Blog

Monday, 25 October 2010

Replacing Multi Tabs and Whitespace

Not perfected yet but a quick solution:
value = value.replace(/[[[:blank:]\r\n]{2}+/gi,'')

No comments:

Post a Comment