Click here to Skip to main content
16,007,163 members
Home / Discussions / C#
   

C#

 
GeneralAdding right aligned controls to MenuStrip in whidbey Pin
SathishVJ24-Feb-05 7:38
SathishVJ24-Feb-05 7:38 
GeneralRe: Adding right aligned controls to MenuStrip in whidbey Pin
Judah Gabriel Himango24-Feb-05 8:56
sponsorJudah Gabriel Himango24-Feb-05 8:56 
GeneralRe: Adding right aligned controls to MenuStrip in whidbey Pin
SathishVJ25-Feb-05 11:07
SathishVJ25-Feb-05 11:07 
GeneralPassword protected files - HELP! Pin
Anthony Mushrow24-Feb-05 6:09
professionalAnthony Mushrow24-Feb-05 6:09 
GeneralRe: Password protected files - HELP! Pin
Dave Kreskowiak24-Feb-05 8:14
mveDave Kreskowiak24-Feb-05 8:14 
GeneralHELP! override OnPain, OnLayout and DoubleBuffer Pin
TheSebaster24-Feb-05 5:47
TheSebaster24-Feb-05 5:47 
Generallinking schema programatically Pin
Member 110614424-Feb-05 5:15
Member 110614424-Feb-05 5:15 
GeneralRegular expression mayhem Pin
Esmo200024-Feb-05 4:18
Esmo200024-Feb-05 4:18 
This message goes out to all the regular expression gurus out there:

I have a very simple regular expression declaration:

regex.Regex ex = new System.Text.RegularExpressions.Regex("\\(");

I want to know how to test against this regular expression so that if the tested string does not match EXACTLY then its going to give me false. For example:-

string test = "a(";
regex.Regex ex = new System.Text.RegularExpressions.Regex("\\(");
System.Console.WriteLine(ex.IsMatch(test, 0));

should return false (which it does not). How do I do this?

Secondly, I want to recursively define a definition but I do non know exactly how. I have an expression and it COULD be enclosed in brackets. So lets say I have the following:

E -> (E)

I could alse have:

E -> C-E
C -> constant

How do I write a definition like this? I'm very much not keen on writing a parser, I assure you!

Thanks a lot!
Jim
GeneralRe: Regular expression mayhem Pin
Michael Dunn24-Feb-05 6:09
sitebuilderMichael Dunn24-Feb-05 6:09 
GeneralRe: Regular expression mayhem Pin
Esmo200024-Feb-05 7:21
Esmo200024-Feb-05 7:21 
GeneralRe: Regular expression mayhem Pin
S. Senthil Kumar24-Feb-05 8:43
S. Senthil Kumar24-Feb-05 8:43 
GeneralRe: Regular expression mayhem Pin
Esmo200024-Feb-05 9:25
Esmo200024-Feb-05 9:25 
GeneralSending Emails - The "SendUsing" configuration value is invalid. Pin
MrEyes24-Feb-05 2:51
MrEyes24-Feb-05 2:51 
GeneralRe: Sending Emails - The "SendUsing" configuration value is invalid. Pin
turbochimp24-Feb-05 12:06
turbochimp24-Feb-05 12:06 
Generalcannot pass a string through an object to an unmanaged VC++ dll Pin
grs_files24-Feb-05 2:29
grs_files24-Feb-05 2:29 
GeneralNeed Help - Game Menu programming. Pin
giggssux9224-Feb-05 1:48
giggssux9224-Feb-05 1:48 
GeneralRe: Need Help - Game Menu programming. Pin
exhaulted24-Feb-05 2:32
exhaulted24-Feb-05 2:32 
GeneralInformation about a streamed file embedded in a WebPage (WindowsMediaPlayer ActiveX) Pin
rwelte24-Feb-05 0:30
rwelte24-Feb-05 0:30 
GeneralSorting DataGrid Pin
Maqsood Ahmed24-Feb-05 0:21
Maqsood Ahmed24-Feb-05 0:21 
GeneralRe: Sorting DataGrid Pin
turbochimp24-Feb-05 12:07
turbochimp24-Feb-05 12:07 
GeneralRe: Sorting DataGrid Pin
Maqsood Ahmed24-Feb-05 20:20
Maqsood Ahmed24-Feb-05 20:20 
GeneralRe: Sorting DataGrid Pin
turbochimp25-Feb-05 3:02
turbochimp25-Feb-05 3:02 
GeneralRe: Sorting DataGrid Pin
Maqsood Ahmed26-Feb-05 3:54
Maqsood Ahmed26-Feb-05 3:54 
GeneralRe: Sorting DataGrid Pin
turbochimp2-Mar-05 2:34
turbochimp2-Mar-05 2:34 
GeneralShortcut targets Pin
exhaulted23-Feb-05 23:40
exhaulted23-Feb-05 23:40 

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.