Click here to Skip to main content
15,924,935 members
Home / Discussions / C#
   

C#

 
GeneralRe: TAPI Programming in C# Pin
Ray Cassick29-Dec-04 10:14
Ray Cassick29-Dec-04 10:14 
GeneralRe: TAPI Programming in C# Pin
Ray Cassick29-Dec-04 10:11
Ray Cassick29-Dec-04 10:11 
GeneralRe: TAPI Programming in C# Pin
SyedMazharAli29-Dec-04 10:38
SyedMazharAli29-Dec-04 10:38 
GeneralMany to many relationships Pin
wlowerycolumbus29-Dec-04 7:03
professionalwlowerycolumbus29-Dec-04 7:03 
GeneralRe: Many to many relationships Pin
Javier Lozano29-Dec-04 7:20
Javier Lozano29-Dec-04 7:20 
GeneralRegex Question Pin
Paul Lyons29-Dec-04 6:58
Paul Lyons29-Dec-04 6:58 
GeneralRe: Regex Question Pin
Nick Parker29-Dec-04 7:09
protectorNick Parker29-Dec-04 7:09 
GeneralRe: Regex Question Pin
Charlie Williams29-Dec-04 7:46
Charlie Williams29-Dec-04 7:46 
"[a-z|A-Z]" will match on any string that contains any alphabetic characters, including something like "123456a789". If you want to have the whole string pass or fail, bracket the regex with ^ (beginning of string) and $ (end of string).

Also, unless you want to match one - and only one - character, you should specify the length of the intended match. * match zero or more occurances, + matches one or more, and {#, #} matches a given number of matches (for instance {1, 4} will match if there are at least one, but no more than four occurances).

So, if I'm correct in my understanding that you want to match "A", "ABC" and "abcDED", but not "", "ab c" or "abc123", you'd use something like "^[a-zA-Z]+$". (Note that the pipe isn't nessecary in this case).

As an aside, you don't need to call ToString on the Text property, as it is already a string.

Charlie

if(!curlies){ return; }
GeneralRe: Regex Question Pin
Paul Lyons29-Dec-04 8:55
Paul Lyons29-Dec-04 8:55 
GeneralRe: Regex Question Pin
Heath Stewart29-Dec-04 9:01
protectorHeath Stewart29-Dec-04 9:01 
GeneralRe: Regex Question Pin
Charlie Williams29-Dec-04 9:50
Charlie Williams29-Dec-04 9:50 
Generalimage converting Pin
Member 161799929-Dec-04 4:59
Member 161799929-Dec-04 4:59 
GeneralRe: image converting Pin
Nick Parker29-Dec-04 6:39
protectorNick Parker29-Dec-04 6:39 
GeneralRe: image converting Pin
Member 161799929-Dec-04 6:44
Member 161799929-Dec-04 6:44 
GeneralRe: image converting Pin
Nick Parker29-Dec-04 7:12
protectorNick Parker29-Dec-04 7:12 
GeneralRe: image converting Pin
Heath Stewart29-Dec-04 8:59
protectorHeath Stewart29-Dec-04 8:59 
GeneralRe: image converting Pin
Charlie Williams29-Dec-04 7:58
Charlie Williams29-Dec-04 7:58 
Generala thread question Pin
cchere29-Dec-04 4:20
cchere29-Dec-04 4:20 
GeneralRe: a thread question Pin
Tom Larsen29-Dec-04 4:36
Tom Larsen29-Dec-04 4:36 
GeneralRe: a thread question Pin
cchere29-Dec-04 5:30
cchere29-Dec-04 5:30 
GeneralRe: a thread question Pin
Member 161799929-Dec-04 6:51
Member 161799929-Dec-04 6:51 
GeneralRe: a thread question Pin
cchere29-Dec-04 7:15
cchere29-Dec-04 7:15 
GeneralRe: a thread question Pin
Tom Larsen29-Dec-04 10:39
Tom Larsen29-Dec-04 10:39 
GeneralVector-Based Application Pin
el_zeeyed29-Dec-04 3:21
el_zeeyed29-Dec-04 3:21 
GeneralRe: Vector-Based Application Pin
Heath Stewart29-Dec-04 9:10
protectorHeath Stewart29-Dec-04 9:10 

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.