Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

expresiones regular #3

Merged
merged 1 commit into from over 1 year ago

2 participants

Willy Aguirre Giovanny Andres Gongora Granada
Willy Aguirre

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

Giovanny Andres Gongora Granada Gioyik merged commit 559c3c4 into from
Giovanny Andres Gongora Granada Gioyik closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jan 16, 2013
Willy Aguirre marti1125 se agrego expresiones regulares 1a2f382
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 3 additions and 6 deletions. Show diff stats Hide diff stats

  1. +3 6 data/js/FeedEk.js
9 data/js/FeedEk.js
@@ -30,12 +30,9 @@
30 30 $('#' + idd).empty();
31 31 $.each(data.responseData.feed.entries, function (i, entry) {
32 32 var title = entry.title;
33   - title = title.replace(/^Noctuido :/, " ");
34   - title = title.replace(/^Willy Aguirre :/, " ");
35   - title = title.replace(/^Jusa\u00ed Prieto :/, " ");
36   - //title = title.replace('Prieto :', ' ');
37   - //title = title.replace('Jusa\u00ed', ' ');
38   -
  33 + title = title.replace(/(\w+)(\s\w+\s:)|(\w+)(\s:)|(\w+)/, " ");
  34 + title = title.replace(/\u00ed/, " ");
  35 + title = title.replace(/\w+\s:/, " ");
39 36 $('#' + idd).append('<div class="ItemTitle"><a id="rtitle" href="' + entry.link + '" target="_blank" >' + title + '</a></div>');
40 37
41 38 //$("#rtitle").html(title);

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.