Match Word using indexOf
HTML
<div>
rankings
</div>
JavaScript
//indexOf is case sensitive, change text to see it return false
//read more here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf
word = 'ra';
/* optional
if ( $('div').text().indexOf(word) == true ) {
*/
if ( $('div').text().indexOf(word) !== -1 ) {
alert('true');
} else {
alert('false');
}