jquery filtering content before specific string

Posted by jeff on Stack Overflow See other posts from Stack Overflow or by jeff
Published on 2010-06-08T17:52:06Z Indexed on 2010/06/08 18:02 UTC
Read the original article Hit count: 146

Filed under:

Is is possible remove all content before a specific string with jquery? For instance say I wanted to strip all the text before the word "subcommittee" in this example below. How would I do that?

With losses mounting among hoteliers, fishermen and others whose livelihoods have been curtailed by the spill, frustration is "rapidly escalating" along the Gulf Coast alive."

Linn told a House Energy and Commerce subcommittee Monday that the amount of money BP has paid local residents for their losses has typically been about $5,000, a sum he dismissed as "a marketing ploy." Businesses such as his vacation rental company are borrowing money to pay their overhead costs, which he called "the only way we're going to keep our business alive."

© Stack Overflow or respective owner

Related posts about jQuery