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

C#

 
GeneralRe: What is my interim pattern for readonly structs Pin
JoeRip27-Aug-08 13:37
JoeRip27-Aug-08 13:37 
GeneralRe: What is my interim pattern for readonly structs Pin
JoeRip27-Aug-08 14:40
JoeRip27-Aug-08 14:40 
GeneralRe: What is my interim pattern for readonly structs Pin
PIEBALDconsult27-Aug-08 16:07
mvePIEBALDconsult27-Aug-08 16:07 
GeneralRe: What is my interim pattern for readonly structs Pin
JoeRip27-Aug-08 17:10
JoeRip27-Aug-08 17:10 
GeneralRe: What is my interim pattern for readonly structs Pin
N a v a n e e t h27-Aug-08 17:26
N a v a n e e t h27-Aug-08 17:26 
GeneralRe: What is my interim pattern for readonly structs Pin
JoeRip27-Aug-08 17:57
JoeRip27-Aug-08 17:57 
GeneralRe: What is my interim pattern for readonly structs Pin
N a v a n e e t h27-Aug-08 19:07
N a v a n e e t h27-Aug-08 19:07 
Questionregular expression Pin
netJP12L27-Aug-08 4:42
netJP12L27-Aug-08 4:42 
I want to test a "name" field on my form and am using regualr expression. My regular expression doesn't pass all the test cases shown below can you please help me in it. The maximum name field can have is 100 characters.

if (Regex.Match(this.textBox1.Text, "^[a-zA-Z0-9_ ]+(')?([ a-z])?$").Success)
{
MessageBox.Show("valid");
}
else
{
MessageBox.Show("not valid");
}


test cases
code project -->valid
codeproject -->valid
codeproject's -->valid
codeproject's program --->valid
codeproject's and codeproject's -->valid
codeproject's and code project's --->valid
code project's and code project's -->valid
AnswerRe: regular expression Pin
Guffa27-Aug-08 9:04
Guffa27-Aug-08 9:04 
QuestionSound Card Output Audio Processing in C# Pin
Deepak Paul John27-Aug-08 4:19
Deepak Paul John27-Aug-08 4:19 
AnswerRe: Sound Card Output Audio Processing in C# Pin
Ashfield27-Aug-08 21:08
Ashfield27-Aug-08 21:08 
GeneralRe: Sound Card Output Audio Processing in C# Pin
Deepak Paul John27-Aug-08 21:24
Deepak Paul John27-Aug-08 21:24 
GeneralRe: Sound Card Output Audio Processing in C# Pin
Ashfield27-Aug-08 21:29
Ashfield27-Aug-08 21:29 
GeneralRe: Sound Card Output Audio Processing in C# Pin
Deepak Paul John27-Aug-08 21:38
Deepak Paul John27-Aug-08 21:38 
GeneralRe: Sound Card Output Audio Processing in C# Pin
Ashfield27-Aug-08 21:50
Ashfield27-Aug-08 21:50 
GeneralRe: Sound Card Output Audio Processing in C# Pin
Deepak Paul John27-Aug-08 22:02
Deepak Paul John27-Aug-08 22:02 
GeneralRe: Sound Card Output Audio Processing in C# Pin
DaveyM6928-Aug-08 1:50
professionalDaveyM6928-Aug-08 1:50 
GeneralRe: Sound Card Output Audio Processing in C# Pin
Deepak Paul John28-Aug-08 19:06
Deepak Paul John28-Aug-08 19:06 
GeneralRe: Sound Card Output Audio Processing in C# Pin
DaveyM6929-Aug-08 4:43
professionalDaveyM6929-Aug-08 4:43 
QuestionDatagridView Combobox Pin
V.27-Aug-08 3:58
professionalV.27-Aug-08 3:58 
QuestionWriting files to database Pin
omlac27-Aug-08 3:32
omlac27-Aug-08 3:32 
AnswerRe: Writing files to database Pin
laziale27-Aug-08 3:32
laziale27-Aug-08 3:32 
GeneralRe: Writing files to database Pin
omlac27-Aug-08 4:05
omlac27-Aug-08 4:05 
AnswerRe: Writing files to database Pin
omlac27-Aug-08 3:55
omlac27-Aug-08 3:55 
GeneralRe: Writing files to database Pin
leppie27-Aug-08 3:57
leppie27-Aug-08 3:57 

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.