Witam!
Chcę z takiego tekstu:
" tabindex="1" >543Fdl3-</a>
" tabindex="1" rel="nofollow" >..//345349sd</a>
" tabindex="1" >qwoFLdsf0</a>
" tabindex="1" >Vodsf954</a>
" tabindex="1" >ZZX546.,,cc</a>
wyodrębnić to, co jest pogrubione. Do tego chciałbym użyć regular Expressions. Ten kod:
MatchCollection m2 = Regex.Matches(sourceCode, "tabindex=\"1\" (rel=\"nofollow \"| )>(.+?)<", RegexOptions.Singleline);
Nie wypluwa mi żadnych wyników.
Ten kod:
MatchCollection m2 = Regex.Matches(sourceCode, "tabindex=\"1\" >(.+?)<", RegexOptions.Singleline);
Wypluwa mi wszystkie wyniki oprócz tych z "nofollow".
Macie jakieś pomysły?