Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var str = $('.block').text();
- var result = str.match( /руб/i );
- str = str.split(result)[0];
- $('.block').text(
- function() {
- $(this).text(str);
- }
- );
- $('.block').text(function(index, oldText) {
- return oldText.split( /руб/i )[0]
- });
Add Comment
Please, Sign In to add comment