function buildTwitterString(tweetData) {
	tweetString = tweetData.full_text;

	//Search and set user mention links.
	tweetString = tweetString.replace(/(http[s]?[://]([\w./])+)/g, function(foundString) {
		return foundString.link(foundString);
	});

	//Search and set user mention links.
	tweetString = tweetString.replace(/@([A-Za-z0-9-_]+)/g, function(foundString) {
		return foundString.link("https://twitter.com/"+foundString.replace("@", ""));
	});

	//Search and set hashtags.
	tweetString = tweetString.replace(/#([A-Za-z0-9-_]+)/g, function(foundString) {
		return foundString.link("https://twitter.com/search?src=typd&q=%23"+foundString.replace("#", ""));
	});

	return tweetString;
}
/*
* This function takes the tweet text from a tweet, and parses it for mentions, links, and hashtags.
*
* @param tweetData The tweet text strint to input
*
* @return The parsed string containing links for hashtags, mentions, and links.
*/
This function takes the tweet text from a tweet, and parses it for mentions, links, and hashtags.
This function takes the tweet text from a tweet and parses it for mentions links and hashtags .
function buildTwitterString(tweetData) {
	tweetString = tweetData.full_text;
	tweetString = tweetString.replace(/(http[s]?[://]([\w./])+)/g, function(foundString) {
		return foundString.link(foundString);
	});
	tweetString = tweetString.replace(/@([A-Za-z0-9-_]+)/g, function(foundString) {
		return foundString.link("https://twitter.com/"+foundString.replace("@", ""));
	});
	tweetString = tweetString.replace(/#([A-Za-z0-9-_]+)/g, function(foundString) {
		return foundString.link("https://twitter.com/search?src=typd&q=%23"+foundString.replace("#", ""));
	});
	return tweetString;
}
function buildTwitterString ( tweetData ) { tweetString = tweetData . full_text ; tweetString = tweetString . replace ( / (http[s]?[://]([\w./])+) / g , function ( foundString ) { return foundString . link ( foundString ) ; } ) ; tweetString = tweetString . replace ( / @([A-Za-z0-9-_]+) / g , function ( foundString ) { return foundString . link ( "https://twitter.com/" + foundString . replace ( "@" , "" ) ) ; } ) ; tweetString = tweetString . replace ( / #([A-Za-z0-9-_]+) / g , function ( foundString ) { return foundString . link ( "https://twitter.com/search?src=typd&q=%23" + foundString . replace ( "#" , "" ) ) ; } ) ; return tweetString ; }
This function takes the tweet text from a tweet, and parses it for mentions, links, and hashtags.
This function takes the tweet text from a tweet and parses it for mentions links and hashtags .
//Search and set user mention links. //Search and set user mention links. //Search and set hashtags.