We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,473 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

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

1
Contributor
1
Reply
1 Hour
Discussion Span
11 Months Ago
Last Updated
2
Views
Question
Answered
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
Question Self-Answered as of 11 Months Ago

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0571 seconds using 2.63MB