Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

expresiones regular #3

Merged
merged 1 commit into from

2 participants

@marti1125

estoy agregando expresiones regulares de javascript con la finalidad de borrar algunos datos innecesario del titulo del rss

@Gioyik Gioyik merged commit 559c3c4 into Gioyik:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 16, 2013
  1. @marti1125
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 6 deletions.
  1. +3 −6 data/js/FeedEk.js
View
9 data/js/FeedEk.js
@@ -30,12 +30,9 @@
$('#' + idd).empty();
$.each(data.responseData.feed.entries, function (i, entry) {
var title = entry.title;
- title = title.replace(/^Noctuido :/, " ");
- title = title.replace(/^Willy Aguirre :/, " ");
- title = title.replace(/^Jusa\u00ed Prieto :/, " ");
- //title = title.replace('Prieto :', ' ');
- //title = title.replace('Jusa\u00ed', ' ');
-
+ title = title.replace(/(\w+)(\s\w+\s:)|(\w+)(\s:)|(\w+)/, " ");
+ title = title.replace(/\u00ed/, " ");
+ title = title.replace(/\w+\s:/, " ");
$('#' + idd).append('<div class="ItemTitle"><a id="rtitle" href="' + entry.link + '" target="_blank" >' + title + '</a></div>');
//$("#rtitle").html(title);
Something went wrong with that request. Please try again.