Hello,
i have issue that i cant solve for some time since i dont fully understand regex.

How can i get selected data from table to array?
Example

class="fb s10" title="Get This Info">
class="fb s10" title="Get That Info">

How can i extract
Get This Info
Get That Info
from selected part of table as is to string array

So goal is find full thing in

class="fb s10" title="  

To

">

Thanks in advance

Recommended Answers

All 8 Replies

So just the title info?

Sorry the explanation confused me xD

I need it to look for full code >>> class="fb s10" title="
and return whats in title ""

Hmm outside my knowledge on how to get the exact string, my attempts have failed so far.

class="fb s10\" title=\"[^<>]*\">

i found that few minutes ago - should work
http://gskinner.com/RegExr/ shows that its selects it so i just need to replace things outside with string.Empty

Will try later today

somehow i only get ""

Here is example i need
http://www.transfermarkt.co.uk/en/zenit-st-petersburg/kader/verein_964.html
from that site i downloaded html and put it in string

How i need to get Hulk name inside "" from

<a href="/en/hulk/profil/spieler_80562.html" class="fb s10" title="Hulk">Hulk</a>

to textbox.text but i only have "" in text box

Cant solve it for some time

Thanks in advance

Got it and it works
Thanks

\bclass=\"fb s10\" title=(\w*)>?\W\w*\s\w*">

Link to regex
RegExr

Issue solved!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.