Regex match HTML
Hi,
i'm trying to get the following data from within the html tages
<td class="colRight">CWCH60</td>
where CWCH60 is the data which changes and needs to be extracted. I have tried the following Regex patterns
[^td|<|>|/|class|\s|^="colRight"][A-Z|a-z|0-9][^</td>]
[^<td][^\s][^class][^="colRight">][A-Z|a-z|0-9][^</td>]
[^td\sclass=""colRight">][A-Z][a-z][0-9]
all work fine in an online regex builder/tester but return WCH60 when executed. Why would this occur, is there a simple operator i have missed out?
Cheers in advance
11 Months Ago
Last Updated
Related Article: Finding links with regex
is a VB.NET discussion thread by AndyPants that has 4 replies, was last updated 1 year ago and has been tagged with the keywords: find, html, link, regex.
gowans07
Junior Poster in Training
51 posts since Sep 2011
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0
Solution found: I had set Regex.IgnoreCase enabled
gowans07
Junior Poster in Training
51 posts since Sep 2011
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0