var s='\\.\\.\\.'; 'Lorem ...ipsum ... dolor sit amet, consectetur adipisicing elit. Libero, placeat... ...'.match(RegExp('(?:^|\\s)'+s+'(?=\\s|$)', 'g')).map(function(s){return s.replace(/^ /, '')});