title: Jquery Twitter Parse Json
body: <p>I have this issue, where everything is working more or less but its giving me too many results.</p>
  
  <p>Any idea?</p>
  
  <pre>
  var url = "search.twitter.com/search.json?q=%23ps3&rpp=15&from=mmgn&lang=en&callback=?";
  $.getJSON(url, function(data) {
      $.each(data.results, function(i, item) {
          var tweet = item.text;
          var combinedRegex = /[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+|[@]+[A-Za-z0-9-_]+|[#]+[A-Za-z0-9-_]+/g,
              container = $('#tweet-container');
          var result, prevLastIndex = 0;
          combinedRegex.lastIndex = 0;
          while ((result = combinedRegex.exec(tweet))) {
              $('').appendTo('#tweet-container');
              $('').html(tweet.slice(prevLastIndex, result.index)).appendTo('.tweet');
              if (result[0].slice(0, 1) == "@") {
                  $('').attr('href', 'http://twitter.com/' + encodeURIComponent(result[0].slice(1))).html(result[0]).appendTo(".tweet");
              } else if (result[0].slice(0, 1) == "#") {
                  $('').attr('href', 'http://search.twitter.com/search?q=%23' + encodeURIComponent(result[0].slice(1))).html(result[0]).appendTo('.tweet');
              } else {
                  $('').attr('href', result[0]).html(result[0]).appendTo(".tweet");
              }
              prevLastIndex = combinedRegex.lastIndex;
          }
          $('').append($('').html(tweet.slice(prevLastIndex)));
      });
  });
  </pre>
  
  <p>Hyperlink, below</p>