Regex pattern question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • nime

    #1

    Regex pattern question

    I use WebBrowser control and
    span.GetAttribu te("class") method looks like buggy because it doesn't return the class value.
    Instead, I want to use regex.

    Samples:
    <SPAN class=success>J ohn Doe</SPAN>
    <SPAN class=fail>John Another</SPAN>


    How can I substract the class value between "<SPAN class=" and the first ">" ?

    Dim expression As New Regex("???????? ???")
    Dim m As Match = expression.Matc h(span.OuterHTM L)




Working...