-1
我有一個帶有文本ButtonColumn的數據網格。現在,我需要排除該ButtonColumn的特定文本。刪除字符串中的特定文本
Dim lnkButton As LinkButton = CType(grdTicket.SelectedItem.Cells(5).Controls(0), LinkButton)
Dim myString as String = ""
example text of lnkButton =
"1 UNIT COMPUTER SET # 8082 <br /><span> - text "Sample Text".</span>
Now, how can I remove the texts starting from the word <br /> up to </span>?
這樣的myString的價值只會變得1個單位的計算機中設置#8082
我已經嘗試過使用替換功能,但我需要做的不僅是去除BR和跨度,但也刪除這兩個文本之間的文本
http://stackoverflow.com/questions/17252615/get-string-between-two-strings-in-a-string,http://stackoverflow.com/questions/1359412/remove-text-在字符串間使用正則表達式 – CodeCaster