Click here to Skip to main content
16,005,241 members
Home / Discussions / C#
   

C#

 
QuestionRegular expression to find href tags. Pin
Pav197712-Sep-08 5:43
Pav197712-Sep-08 5:43 
AnswerRe: Regular expression to find href tags. Pin
M Harris12-Sep-08 6:19
M Harris12-Sep-08 6:19 
AnswerRe: Regular expression to find href tags. Pin
Mohammad Dayyan12-Sep-08 11:04
Mohammad Dayyan12-Sep-08 11:04 
AnswerRe: Regular expression to find href tags. Pin
Mike Hankey12-Sep-08 17:20
mveMike Hankey12-Sep-08 17:20 
QuestionHow would you write this in Linq? Pin
Marc Clifton12-Sep-08 4:34
mvaMarc Clifton12-Sep-08 4:34 
AnswerRe: How would you write this in Linq? Pin
led mike12-Sep-08 4:39
led mike12-Sep-08 4:39 
GeneralRe: How would you write this in Linq? Pin
Marc Clifton12-Sep-08 4:40
mvaMarc Clifton12-Sep-08 4:40 
AnswerRe: How would you write this in Linq? [modified] Pin
leppie12-Sep-08 4:54
leppie12-Sep-08 4:54 
You cant do that in Linq (because of the break statement) Smile | :) But you can do something with same effect.
<font color="Blue">string</font> failure <font color="DarkBlue">=</font> <font color="Maroon">"fob"</font><font color="DarkBlue">;</font>

<font color="Blue">bool</font> bad <font color="DarkBlue">=</font> <font color="DarkBlue">(</font><font color="Blue">from</font> c <font color="Blue">in</font> failure
            <font color="Blue">where</font> <font color="DarkBlue">!</font><font color="DarkBlue">(</font><font color="Blue">char</font><font color="DarkBlue">.</font>IsWhiteSpace<font color="DarkBlue">(</font>c<font color="DarkBlue">)</font> <font color="DarkBlue">||</font> <font color="Blue">char</font><font color="DarkBlue">.</font>IsDigit<font color="DarkBlue">(</font>c<font color="DarkBlue">)</font><font color="DarkBlue">)</font>
            <font color="Blue">select</font> c<font color="DarkBlue">)</font><font color="DarkBlue">.</font>Count<font color="DarkBlue">(</font><font color="DarkBlue">)</font> <font color="DarkBlue">></font> <font color="Red">0</font><font color="DarkBlue">;</font>

[update] fixed the query Roll eyes | :rolleyes: [update]

xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 alpha 4a out now (29 May 2008)

modified on Friday, September 12, 2008 11:44 AM

GeneralRe: How would you write this in Linq? Pin
Marc Clifton12-Sep-08 4:58
mvaMarc Clifton12-Sep-08 4:58 
GeneralRe: How would you write this in Linq? Pin
leppie12-Sep-08 4:58
leppie12-Sep-08 4:58 
GeneralRe: How would you write this in Linq? [modified] Pin
leppie12-Sep-08 5:02
leppie12-Sep-08 5:02 
GeneralRe: How would you write this in Linq? Pin
Marc Clifton12-Sep-08 5:28
mvaMarc Clifton12-Sep-08 5:28 
GeneralRe: How would you write this in Linq? Pin
Marc Clifton12-Sep-08 5:35
mvaMarc Clifton12-Sep-08 5:35 
GeneralRe: How would you write this in Linq? Pin
leppie12-Sep-08 5:50
leppie12-Sep-08 5:50 
GeneralRe: How would you write this in Linq? [modified] Pin
Eslam Afifi12-Sep-08 6:12
Eslam Afifi12-Sep-08 6:12 
GeneralRe: How would you write this in Linq? Pin
leppie12-Sep-08 5:08
leppie12-Sep-08 5:08 
GeneralRe: How would you write this in Linq? Pin
led mike12-Sep-08 5:25
led mike12-Sep-08 5:25 
GeneralRe: How would you write this in Linq? Pin
leppie12-Sep-08 5:38
leppie12-Sep-08 5:38 
QuestionRe: How would you write this in Linq? Pin
led mike12-Sep-08 5:50
led mike12-Sep-08 5:50 
AnswerRe: How would you write this in Linq? Pin
leppie12-Sep-08 6:09
leppie12-Sep-08 6:09 
GeneralRe: How would you write this in Linq? Pin
led mike12-Sep-08 6:44
led mike12-Sep-08 6:44 
GeneralRe: How would you write this in Linq? Pin
leppie12-Sep-08 4:58
leppie12-Sep-08 4:58 
GeneralRe: How would you write this in Linq? Pin
Pete O'Hanlon12-Sep-08 5:08
mvePete O'Hanlon12-Sep-08 5:08 
AnswerRe: How would you write this in Linq? Pin
Pete O'Hanlon12-Sep-08 5:07
mvePete O'Hanlon12-Sep-08 5:07 
QuestionStreamWriter and seek Pin
captjack12-Sep-08 4:31
captjack12-Sep-08 4:31 

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.