How to extract a string from a larger string?
Using jQuery how would I find/extract the "Spartan" string if the outputted HTML page had the following.. <a href="/mytlnet/logout.php?t=e22df53bf4b5fc0a087ce48897e65ec0"> <b>Logout</b> </a> : Spartan<br> Regular Expressions . Or by splitting the string in a more tedious fashion. Since I'm not a big regex-junkie, I would likely get the text-equivalent using .text(), then split the result on ":", and grab the second index (which would be the 'Spartan' text). if the pattern is going to be consistent you can your RegEx or if the markup is going to be the same you can try the jQuery HTML Parser As