Click here to Skip to main content
15,920,596 members
Home / Discussions / C#
   

C#

 
GeneralDefining excepion Pin
Paolo Ponzano25-Jan-05 3:41
Paolo Ponzano25-Jan-05 3:41 
GeneralRe: Defining excepion Pin
Dennis C. Dietrich25-Jan-05 4:03
Dennis C. Dietrich25-Jan-05 4:03 
GeneralProgrammatic Break Points Pin
MrEyes25-Jan-05 1:10
MrEyes25-Jan-05 1:10 
GeneralRe: Programmatic Break Points Pin
leppie25-Jan-05 2:40
leppie25-Jan-05 2:40 
GeneralBattery power Ramaining Pin
Amir Jalaly24-Jan-05 23:50
Amir Jalaly24-Jan-05 23:50 
GeneralRe: Battery power Ramaining Pin
Dennis C. Dietrich25-Jan-05 1:27
Dennis C. Dietrich25-Jan-05 1:27 
GeneralRe: No postback for runtime created control Pin
Nick Parker25-Jan-05 3:15
protectorNick Parker25-Jan-05 3:15 
GeneralRegular expression Pin
Jan R Hansen24-Jan-05 23:12
Jan R Hansen24-Jan-05 23:12 
Hi,

I need to be able to recognize excel-like cell-references (i.e. 'Sheet1'!$C4 ) and have a regular expression for that, which works just nice. However, users should be allowed to encapsulate a such field (or a plain number for the sake of simplicity) in parantheses (spellcheck..) like ((12)) as this is syntactically correct. However - there has to as many opening '(' as there is ')'. I cant just count these, as a field reference may include e.g. a '(' in the sheet-name.

So, is there any way with C# regular expressions to count and compare counts of certain characters ? The regex for the simple example could be

"[(]*[0-9\.,]*[)]*" - which would allow an un-even number of opening and closing parantheses.

Any tricks to do this ?

Do you know why it's important to make fast decisions? Because you give yourself more time to correct your mistakes, when you find out that you made the wrong one. Chris Meech on deciding whether to go to his daughters graduation or a Neil Young concert
GeneralRe: Regular expression Pin
S. Senthil Kumar25-Jan-05 7:27
S. Senthil Kumar25-Jan-05 7:27 
GeneralRe: Regular expression Pin
peter271325-Jan-05 13:08
peter271325-Jan-05 13:08 
GeneralCustom MenuItem problem Pin
spif200124-Jan-05 20:43
spif200124-Jan-05 20:43 
GeneralSample Licensing Application Pin
vchalla24-Jan-05 18:07
vchalla24-Jan-05 18:07 
GeneralRe: Sample Licensing Application Pin
Dave Kreskowiak25-Jan-05 5:52
mveDave Kreskowiak25-Jan-05 5:52 
GeneralClickOnce security issue Pin
Judah Gabriel Himango24-Jan-05 12:03
sponsorJudah Gabriel Himango24-Jan-05 12:03 
GeneralO/S Visual Studio Compiler Question... Pin
new_phoenix24-Jan-05 11:42
new_phoenix24-Jan-05 11:42 
GeneralRe: O/S Visual Studio Compiler Question... Pin
Judah Gabriel Himango24-Jan-05 12:07
sponsorJudah Gabriel Himango24-Jan-05 12:07 
GeneralRe: O/S Visual Studio Compiler Question... Pin
new_phoenix24-Jan-05 14:29
new_phoenix24-Jan-05 14:29 
GeneralRe: O/S Visual Studio Compiler Question... Pin
Judah Gabriel Himango25-Jan-05 4:12
sponsorJudah Gabriel Himango25-Jan-05 4:12 
GeneralRe: O/S Visual Studio Compiler Question... Pin
Dave Kreskowiak25-Jan-05 5:48
mveDave Kreskowiak25-Jan-05 5:48 
GeneralExtracting Email Ids from Email content Pin
ratsy24-Jan-05 11:28
ratsy24-Jan-05 11:28 
GeneralView an EXE structures Pin
Budi Zhu24-Jan-05 10:28
Budi Zhu24-Jan-05 10:28 
GeneralRe: View an EXE structures Pin
Christian Graus24-Jan-05 11:05
protectorChristian Graus24-Jan-05 11:05 
GeneralRe: View an EXE structures Pin
Judah Gabriel Himango24-Jan-05 12:19
sponsorJudah Gabriel Himango24-Jan-05 12:19 
General2nd Pin
DavidNohejl24-Jan-05 12:27
DavidNohejl24-Jan-05 12:27 
GeneralRe: 2nd Pin
Budi Zhu25-Jan-05 11:30
Budi Zhu25-Jan-05 11:30 

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.