In Javascript,
str = 'left ui-tabs ui-widget ui-widget-content center right';
Is it possible to remove non 'ui-*' words by invoking str.replace() with regexp ?
The result after invoking str.replace() should be:
str.replace(/ /, '') = 'ui-tabs ui-widget ui-widget-content';
I've tried some regexp patterns, but they doesn't work.