Click here to Skip to main content
15,890,282 members
Home / Discussions / C#
   

C#

 
GeneralRe: Bitmap class Pin
naglbitur25-Oct-05 4:37
naglbitur25-Oct-05 4:37 
QuestionExcluding DLLs Pin
AB777122-Oct-05 20:25
AB777122-Oct-05 20:25 
AnswerRe: Excluding DLLs Pin
User 167325222-Oct-05 21:07
User 167325222-Oct-05 21:07 
AnswerRe: Excluding DLLs Pin
leppie22-Oct-05 22:08
leppie22-Oct-05 22:08 
Questionabout webbrower Pin
wangfenli22-Oct-05 17:39
wangfenli22-Oct-05 17:39 
QuestionRegular Expression ? Pin
Skoder22-Oct-05 17:13
Skoder22-Oct-05 17:13 
AnswerRe: Regular Expression ? Pin
Guffa22-Oct-05 18:40
Guffa22-Oct-05 18:40 
GeneralRe: Regular Expression ? Pin
Skoder23-Oct-05 5:29
Skoder23-Oct-05 5:29 
Hello,

less might be more Smile | :)
but your regular expression seems to be incorrect.

It only accepts if there is 1 space between each character, soo etc. "My Name" is not true, which it should be.
Also it requires the first character to be 0-9 A-Z or a-z even though any character should be accepted.

Spaces are allowed but not nessecary, as long as there is not 2 just after eachother or in the start or end.


Also i think it might be a typo that there is 0-9 2 times in the first block ?

and the + is not escaped ?


It should be used for defining Usernames

Anyway... any of the characters in any combination or order (At least one a-z A-Z 0-9 somewhere), as long as there is not 2 spaces directly after eachoter or spaces in the start or the end.


"-: Whatever :-" <- true
" wha e ver" <- false
"My name ' ' is" <- false
"My name is" <- true
"__- What ever -__" <- true
"A B C D E F G : + - _" <- true
"_-: :-_" <- false (Should be at least 1x a-z A-Z or 0-9)
"_-: T :-_" <- true


Thanks for trying


Martin

-- modified at 14:18 Sunday 23rd October, 2005
GeneralRe: Regular Expression ? Pin
Matt Gerrans23-Oct-05 8:42
Matt Gerrans23-Oct-05 8:42 
GeneralRe: Regular Expression ? Pin
Skoder23-Oct-05 10:28
Skoder23-Oct-05 10:28 
GeneralRe: Regular Expression ? Pin
Guffa25-Oct-05 13:35
Guffa25-Oct-05 13:35 
AnswerRe: Regular Expression ? Pin
Matt Gerrans22-Oct-05 19:42
Matt Gerrans22-Oct-05 19:42 
GeneralRe: Regular Expression ? Pin
Skoder23-Oct-05 5:32
Skoder23-Oct-05 5:32 
Questionhelp please, set focus to control Pin
CandyMe22-Oct-05 16:14
CandyMe22-Oct-05 16:14 
AnswerRe: help please, set focus to control Pin
MoustafaS22-Oct-05 16:44
MoustafaS22-Oct-05 16:44 
GeneralRe: help please, set focus to control Pin
CandyMe23-Oct-05 15:33
CandyMe23-Oct-05 15:33 
AnswerRe: help please, set focus to control Pin
MoustafaS23-Oct-05 16:05
MoustafaS23-Oct-05 16:05 
GeneralRe: help please, set focus to control Pin
Anonymous23-Oct-05 16:09
Anonymous23-Oct-05 16:09 
QuestionImage Display Pin
MKlucher22-Oct-05 15:07
MKlucher22-Oct-05 15:07 
AnswerRe: Image Display Pin
MoustafaS22-Oct-05 15:35
MoustafaS22-Oct-05 15:35 
QuestionRelease versus Debug exception catching? Pin
theFrenchHornet22-Oct-05 14:11
theFrenchHornet22-Oct-05 14:11 
AnswerRe: Release versus Debug exception catching? Pin
Stefan Troschuetz22-Oct-05 22:12
Stefan Troschuetz22-Oct-05 22:12 
AnswerRe: Release versus Debug exception catching? Pin
mav.northwind22-Oct-05 23:32
mav.northwind22-Oct-05 23:32 
GeneralRe: Release versus Debug exception catching? Pin
Daniel Grunwald23-Oct-05 2:34
Daniel Grunwald23-Oct-05 2:34 
AnswerRe: Release versus Debug exception catching? Pin
theFrenchHornet23-Oct-05 5:56
theFrenchHornet23-Oct-05 5:56 

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.