Click here to Skip to main content
15,901,205 members
Home / Discussions / C#
   

C#

 
Question[SOLVED] IL: What are the contents of arg_0 in a static method? [modified] Pin
blackblizzard19-Feb-10 1:42
blackblizzard19-Feb-10 1:42 
AnswerRe: IL: What are the contents of arg_0 in a static method? Pin
blackblizzard19-Feb-10 1:49
blackblizzard19-Feb-10 1:49 
QuestionDrag&Drop to Windows Explorer ? Pin
Nematjon Rahmanov19-Feb-10 1:06
Nematjon Rahmanov19-Feb-10 1:06 
QuestionGet Client Browser Time on server side Pin
sher_azam19-Feb-10 0:45
sher_azam19-Feb-10 0:45 
AnswerRe: Get Client Browser Time on server side Pin
J4amieC19-Feb-10 0:57
J4amieC19-Feb-10 0:57 
GeneralRe: Get Client Browser Time on server side Pin
sher_azam19-Feb-10 1:04
sher_azam19-Feb-10 1:04 
GeneralRe: Get Client Browser Time on server side Pin
J4amieC19-Feb-10 1:09
J4amieC19-Feb-10 1:09 
QuestionRegular expression [modified] Pin
Eduard Keilholz19-Feb-10 0:08
Eduard Keilholz19-Feb-10 0:08 
Hey guys, I'm trying to create a regular expression which matches text with html links in it. I want to extract both the URL and the 'clickable' text. The regular expression so far :

(<a(.)*href=("|')(?<url>(.)*)("|')(.)*>(?<text>(.)+)</a>)

Now in general, this works. When I enter a text with a html link in it :
blah blah blah <a href="/link.aspx" target="_blank">clickable text</a> blah blah

The regular expression returns one match containing <a href... ... </a> so that works fine...
However, when I enter a text that contains two links :
blah blah blah <a href="/link.aspx" target="_blank">clickable text</a> blah blah blah blah blah <a href="/link.aspx" target="_blank">clickable text</a> blah blah

The regular expression still returns one match, containing the first <a href... till the second </a> which is not the wanted result. I want the regular expression to return two matches. Can anyone help me?

Regex regx = new Regex("<a(.)*href=(\"|')(?<url>(.)*)(\"|')(.)*>(?<text>(.)+)</a>", RegexOptions.IgnoreCase | RegexOptions.Multiline | RegexOptions.Compiled);
MatchCollection col = regx.Matches(Input);
.: I love it when a plan comes together :.
http://www.zonderpunt.nl
modified on Friday, February 19, 2010 6:21 AM

AnswerRe: Regular expression Pin
Not Active19-Feb-10 0:37
mentorNot Active19-Feb-10 0:37 
GeneralRe: Regular expression Pin
Eduard Keilholz19-Feb-10 2:27
Eduard Keilholz19-Feb-10 2:27 
AnswerRe: Regular expression Pin
rhuiden19-Feb-10 2:33
rhuiden19-Feb-10 2:33 
GeneralRe: Regular expression Pin
Eduard Keilholz19-Feb-10 3:47
Eduard Keilholz19-Feb-10 3:47 
Question[SOLVED] How do I get the type of the class I'm in without knowing its name? [modified] Pin
blackblizzard18-Feb-10 23:44
blackblizzard18-Feb-10 23:44 
AnswerRe: How do I get the type of the class I'm in without knowing its name? Pin
Abhinav S19-Feb-10 0:47
Abhinav S19-Feb-10 0:47 
GeneralRe: How do I get the type of the class I'm in without knowing its name? Pin
blackblizzard19-Feb-10 1:03
blackblizzard19-Feb-10 1:03 
GeneralRe: How do I get the type of the class I'm in without knowing its name? Pin
Daniel Grunwald19-Feb-10 2:22
Daniel Grunwald19-Feb-10 2:22 
GeneralRe: How do I get the type of the class I'm in without knowing its name? Pin
blackblizzard19-Feb-10 2:35
blackblizzard19-Feb-10 2:35 
QuestionSql Connection Pin
Isaac Gordon18-Feb-10 23:29
Isaac Gordon18-Feb-10 23:29 
AnswerRe: Sql Connection Pin
Eddy Vluggen19-Feb-10 1:05
professionalEddy Vluggen19-Feb-10 1:05 
QuestionGet an "index" for a field of a class? Pin
blackblizzard18-Feb-10 23:29
blackblizzard18-Feb-10 23:29 
AnswerRe: Get an "index" for a field of a class? Pin
Luc Pattyn19-Feb-10 0:21
sitebuilderLuc Pattyn19-Feb-10 0:21 
GeneralRe: Get an "index" for a field of a class? Pin
blackblizzard19-Feb-10 0:30
blackblizzard19-Feb-10 0:30 
QuestionMemory Leak in WPF. Multiple instances of the same control in memory. [modified] Pin
AWriter18-Feb-10 23:03
AWriter18-Feb-10 23:03 
AnswerRe: Memory Leak in WPF. Multiple instances of the same control in memory. Pin
Saksida Bojan19-Feb-10 20:21
Saksida Bojan19-Feb-10 20:21 
Questiongrid view row copy Pin
Syed Shahid Hussain18-Feb-10 23:01
Syed Shahid Hussain18-Feb-10 23:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.