Got more questions? Find advice on: ASP | SQL | XML | Windows
Welcome to RegexAdvice Sign in | Join | Help

Special Parsing HTML by C#

  •  03-28-2008, 8:57 PM

    Special Parsing HTML by C#

    Hi everyone

      <span class="FiyatSmallBlackBack"><b>Bizde:</b></span><span class="FiyatSmallBlue"><b> 26,00 USD + KDV</b></span> <br />

     In that HTML I want to parse 26,00 USD +KDV using c# but that html could be as that ; (no +KDV just 26,00 USD</b>)

    span class="FiyatSmallBlackBack"><b>Bizde:</b></span><span class="FiyatSmallBlue"><b> 26,00 USD </b></span> <br />

    I am using  >(?<fiyat1>.*?) USD+(?<KDV>.*?)<. Result of that regex is ><b>Bizde:</b></span><span class="FiyatSmallBlue"><b> 26,00 USD + KDV<

    But I want Just the 26,00 USD and if it is written +KDV thanks..

     

     

View Complete Thread