Click here to Skip to main content
15,881,600 members
Home / Discussions / C#
   

C#

 
AnswerRe: Facing Problems in your Code Pin
Dave Kreskowiak27-Aug-14 17:27
mveDave Kreskowiak27-Aug-14 17:27 
QuestionRe: Facing Problems in your Code Pin
ZurdoDev28-Aug-14 4:23
professionalZurdoDev28-Aug-14 4:23 
AnswerRe: Facing Problems in your Code Pin
Gerry Schmitz28-Aug-14 5:36
mveGerry Schmitz28-Aug-14 5:36 
QuestionC# 2013 Pin
shawnjots27-Aug-14 13:12
shawnjots27-Aug-14 13:12 
AnswerRe: C# 2013 Pin
Richard MacCutchan27-Aug-14 22:17
mveRichard MacCutchan27-Aug-14 22:17 
AnswerRe: C# 2013 Pin
Sibeesh KV29-Sep-14 19:26
professionalSibeesh KV29-Sep-14 19:26 
Questionget string from via Regex Pin
jojoba2027-Aug-14 7:02
jojoba2027-Aug-14 7:02 
AnswerRe: get string from via Regex Pin
Rob Philpott27-Aug-14 9:13
Rob Philpott27-Aug-14 9:13 
Depending on the variance of the line you are extracting from, perhaps you could use a non-regex approach. Personally I would go down this route as RegEx syntax is tricky, but each to their own.

In you example you could do something like:

string x = s.Replace("href=\"", string.Empty); // to remove first bit
x = x.Substring(0, x.IndexOf('\\'); // to remove last part


.. or something like that, no visual studio to hand.
Regards,
Rob Philpott.

QuestionRe: get string from via Regex Pin
jojoba2027-Aug-14 9:43
jojoba2027-Aug-14 9:43 
AnswerRe: get string from via Regex Pin
Bernhard Hiller27-Aug-14 20:40
Bernhard Hiller27-Aug-14 20:40 
AnswerRe: get string from via Regex Pin
Ravi Bhavnani27-Aug-14 9:36
professionalRavi Bhavnani27-Aug-14 9:36 
QuestionHow to write Context menu helper class Pin
Tejas Vaishnav26-Aug-14 21:09
professionalTejas Vaishnav26-Aug-14 21:09 
AnswerRe: How to write Context menu helper class Pin
Eddy Vluggen26-Aug-14 22:27
professionalEddy Vluggen26-Aug-14 22:27 
GeneralRe: How to write Context menu helper class Pin
Rob Philpott26-Aug-14 22:38
Rob Philpott26-Aug-14 22:38 
GeneralRe: How to write Context menu helper class Pin
Tejas Vaishnav26-Aug-14 23:00
professionalTejas Vaishnav26-Aug-14 23:00 
GeneralRe: How to write Context menu helper class Pin
Eddy Vluggen27-Aug-14 0:28
professionalEddy Vluggen27-Aug-14 0:28 
AnswerRe: How to write Context menu helper class Pin
Tejas Vaishnav27-Aug-14 1:26
professionalTejas Vaishnav27-Aug-14 1:26 
GeneralRe: How to write Context menu helper class Pin
Eddy Vluggen27-Aug-14 8:12
professionalEddy Vluggen27-Aug-14 8:12 
Questionc# XML nodelist to datagrid Pin
jdpiper6526-Aug-14 11:44
jdpiper6526-Aug-14 11:44 
AnswerRe: c# XML nodelist to datagrid Pin
Bernhard Hiller26-Aug-14 20:55
Bernhard Hiller26-Aug-14 20:55 
GeneralRe: c# XML nodelist to datagrid Pin
jdpiper6527-Aug-14 4:58
jdpiper6527-Aug-14 4:58 
Questionscraping C# Pin
jojoba2026-Aug-14 10:23
jojoba2026-Aug-14 10:23 
AnswerRe: scraping C# Pin
Dave Kreskowiak26-Aug-14 12:13
mveDave Kreskowiak26-Aug-14 12:13 
SuggestionRe: scraping C# Pin
jojoba2027-Aug-14 6:59
jojoba2027-Aug-14 6:59 
QuestionObject Reference Error Pin
Member 914293626-Aug-14 7:29
Member 914293626-Aug-14 7:29 

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.