c# - Getting rid of unnecessary text Regex -


alright having trouble this: have string looks this

<a class="l _hid" href="http://www.cnbc.com/2016/07/28/royal-dutch-shell-second-quarter-net-profit-comes-in-at-118-billion.html" onmousedown="return rwt(this,&#39;&#39;,&#39;&#39;,&#39;&#39;,&#39;1&#39;,&#39;afqjcnhzdjmd9kznazjkrec-famndp8ujw&#39;,&#39;mb_qkv1zfbnfljbx-jncea&#39;,&#39;0ahukewiwmbpoljboahvj6xqkht1qdfkqqqiigigamaa&#39;,&#39;&#39;,&#39;&#39;,event)">shell sees quarterly profits plummet 70% low <em>oil price</em> bites</a> 

which, simplified, looks essentially:

<a class="l _hid" href="link" onmousedown="some gibberish">the string need <em>i guessing searched</em> bites</a> 

it have been helpful if new how achieved. form of appreciated.

thanks in advance.

indeed link post answered questions:

regex match open tags except xhtml self-contained tags

it looks parsing html regex isn't best idea.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -