'one two three'.split(' ').reverse().join(' ')
<ul>
<li>Один Два Три</li>
<li>Четыре</li>
<li>1234567890</li>
</ul>
var list = $('ul li')
list.each(function(index, item)
{
currentItemText = $(item).html();
$('li:eq(' + index + ')').html(currentItemText.split('').reverse().join(''));
// console.log($(item).html());
});
var testStr = "Lorem ipsum 'vendor/js/srcipt.js' dolor sit amet, 'lib/ls/jquery/jquery.min.js' consectetur 'img/pict.jpg' adipisicing 'vendor/style/some-style.min.css' 'vendor/style/some-style.less' или 'vendor/img/bla.png' elit. Adipisci, tenetur?";
var reqExpWrapper = new RegExp('(?:vendor/)((?:.*?)\\.(?:css|js))\'', 'g');
var matches = new Array();
while(match = reqExpWrapper.exec(testStr))
{
matches.push(match[1]);
}
console.log(matches);