Click here to Skip to main content
15,905,686 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# use linq to parse xml Pin
V.29-Aug-12 2:00
professionalV.29-Aug-12 2:00 
GeneralRe: C# use linq to parse xml Pin
dcof29-Aug-12 10:56
dcof29-Aug-12 10:56 
Questionif webbrowser hangs, then retry, how to check if hanging c# Pin
Member 938944428-Aug-12 13:52
Member 938944428-Aug-12 13:52 
AnswerRe: if webbrowser hangs, then retry, how to check if hanging c# Pin
Shameel28-Aug-12 14:54
professionalShameel28-Aug-12 14:54 
GeneralRe: if webbrowser hangs, then retry, how to check if hanging c# Pin
Member 938944428-Aug-12 16:26
Member 938944428-Aug-12 16:26 
AnswerRe: if webbrowser hangs, then retry, how to check if hanging c# Pin
Shameel28-Aug-12 19:30
professionalShameel28-Aug-12 19:30 
AnswerRe: if webbrowser hangs, then retry, how to check if hanging c# Pin
Eddy Vluggen28-Aug-12 23:09
professionalEddy Vluggen28-Aug-12 23:09 
GeneralRe: if webbrowser hangs, then retry, how to check if hanging c# Pin
Member 88893234-Sep-12 3:52
Member 88893234-Sep-12 3:52 
QuestionSecurity of Passwords Pin
zephaneas28-Aug-12 13:18
zephaneas28-Aug-12 13:18 
AnswerRe: Security of Passwords Pin
jschell28-Aug-12 14:00
jschell28-Aug-12 14:00 
AnswerRe: Security of Passwords Pin
Peter_in_278028-Aug-12 15:13
professionalPeter_in_278028-Aug-12 15:13 
GeneralRe: Security of Passwords Pin
Paul Conrad28-Aug-12 18:24
professionalPaul Conrad28-Aug-12 18:24 
AnswerRe: Security of Passwords Pin
Paul Conrad28-Aug-12 18:25
professionalPaul Conrad28-Aug-12 18:25 
AnswerRe: Security of Passwords Pin
Bernhard Hiller28-Aug-12 21:42
Bernhard Hiller28-Aug-12 21:42 
AnswerRe: Security of Passwords Pin
BobJanova28-Aug-12 23:36
BobJanova28-Aug-12 23:36 
AnswerRe: Security of Passwords Pin
Dave Kreskowiak29-Aug-12 2:06
mveDave Kreskowiak29-Aug-12 2:06 
GeneralRe: Security of Passwords Pin
Eddy Vluggen29-Aug-12 2:24
professionalEddy Vluggen29-Aug-12 2:24 
AnswerRe: Security of Passwords Pin
Pete O'Hanlon29-Aug-12 3:09
mvePete O'Hanlon29-Aug-12 3:09 
zephaneas wrote:
A) It must contain at least one vowel.

So, a password of a is enough to satisfy the criteria.

As others have said, he needs to be educated as to best practices (e.g. use of symbols, minimum length, etc).

To answer the question though - I wouldn't use RegEx for something like this. You may get a working regular expression, but it will be tied to these requirements. If the criteria expands, you'll have to revisit the regex, and you may find that the solution is no longer valid. A fairly elegant solution would be to use the Visitor Pattern[^]. With this, you can add new rules without affecting the underlying logic, simply by adding new visitors.

*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

"Mind bleach! Send me mind bleach!" - Nagy Vilmos


CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

QuestionC# create folder and place documents Pin
dcof28-Aug-12 12:05
dcof28-Aug-12 12:05 
AnswerRe: C# create folder and place documents Pin
Richard Andrew x6428-Aug-12 12:57
professionalRichard Andrew x6428-Aug-12 12:57 
AnswerRe: C# create folder and place documents Pin
Wes Aday28-Aug-12 14:49
professionalWes Aday28-Aug-12 14:49 
QuestionDelete From XML File Pin
Kevin Marois28-Aug-12 10:54
professionalKevin Marois28-Aug-12 10:54 
AnswerRe: Delete From XML File Pin
Richard Andrew x6428-Aug-12 11:10
professionalRichard Andrew x6428-Aug-12 11:10 
GeneralRe: Delete From XML File Pin
Kevin Marois28-Aug-12 11:16
professionalKevin Marois28-Aug-12 11:16 
GeneralRe: Delete From XML File Pin
PIEBALDconsult28-Aug-12 11:36
mvePIEBALDconsult28-Aug-12 11:36 

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.