Click here to Skip to main content
15,886,075 members
Home / Discussions / C#
   

C#

 
GeneralRe: for get the tool bar Pin
cool_kp23-Mar-12 6:10
cool_kp23-Mar-12 6:10 
QuestionAdding multiple controls to a ListBox without using WPF Pin
Sutton Mehaffey22-Mar-12 19:54
Sutton Mehaffey22-Mar-12 19:54 
QuestionIssue with regular expression Pin
Sebastian T Xavier22-Mar-12 18:36
Sebastian T Xavier22-Mar-12 18:36 
AnswerRe: Issue with regular expression Pin
Sebastian T Xavier22-Mar-12 18:45
Sebastian T Xavier22-Mar-12 18:45 
AnswerRe: Issue with regular expression Pin
Luc Pattyn22-Mar-12 18:49
sitebuilderLuc Pattyn22-Mar-12 18:49 
JokeRe: Issue with regular expression Pin
Peter_in_278022-Mar-12 18:50
professionalPeter_in_278022-Mar-12 18:50 
AnswerRe: Issue with regular expression Pin
Peter_in_278022-Mar-12 18:50
professionalPeter_in_278022-Mar-12 18:50 
GeneralRe: Issue with regular expression Pin
Sebastian T Xavier22-Mar-12 19:00
Sebastian T Xavier22-Mar-12 19:00 
Got the idea, Thanks...

again i have another question... Here is my updated expression...
C#
string x = "user = 'sa' password='e X65dere!@#$%^&*()' server = 'localhost'";
Regex rx = new Regex(@"password=\'([a-zA-Z0-9\\!@#$%^&*|() _'""*-+{}<>,.;/?:~`\[\]\\\\]+)\'");
    var r = rx.Match(x);
    if (r.Groups.Count > 0)
       {
          var g1 = r.Groups[0];
          MessageBox.Show(g1.ToString());
       }


In this case it will match for every small & large cap letters, numbers and special characters except = . If the password contains = the expression fails... can you please help?

modified 23-Mar-12 8:00am.

AnswerRe: Issue with regular expression Pin
ProEnggSoft23-Mar-12 2:17
ProEnggSoft23-Mar-12 2:17 
GeneralRe: Issue with regular expression Pin
Sebastian T Xavier23-Mar-12 2:41
Sebastian T Xavier23-Mar-12 2:41 
GeneralRe: Issue with regular expression Pin
ProEnggSoft24-Mar-12 20:48
ProEnggSoft24-Mar-12 20:48 
QuestionWPF error on VS2008 Pin
jsdhgkjdsahklg22-Mar-12 3:41
jsdhgkjdsahklg22-Mar-12 3:41 
AnswerRe: WPF error on VS2008 Pin
Ravi Bhavnani22-Mar-12 3:54
professionalRavi Bhavnani22-Mar-12 3:54 
GeneralRe: WPF error on VS2008 Pin
jsdhgkjdsahklg22-Mar-12 3:56
jsdhgkjdsahklg22-Mar-12 3:56 
GeneralRe: WPF error on VS2008 Pin
Ravi Bhavnani22-Mar-12 4:04
professionalRavi Bhavnani22-Mar-12 4:04 
GeneralRe: WPF error on VS2008 Pin
jsdhgkjdsahklg22-Mar-12 4:08
jsdhgkjdsahklg22-Mar-12 4:08 
GeneralRe: WPF error on VS2008 Pin
Ravi Bhavnani22-Mar-12 4:14
professionalRavi Bhavnani22-Mar-12 4:14 
GeneralRe: WPF error on VS2008 Pin
jsdhgkjdsahklg22-Mar-12 4:17
jsdhgkjdsahklg22-Mar-12 4:17 
AnswerRe: WPF error on VS2008 Pin
Abhinav S22-Mar-12 4:44
Abhinav S22-Mar-12 4:44 
GeneralRe: WPF error on VS2008 Pin
jsdhgkjdsahklg22-Mar-12 4:49
jsdhgkjdsahklg22-Mar-12 4:49 
AnswerRe: WPF error on VS2008 Pin
Eddy Vluggen22-Mar-12 9:23
professionalEddy Vluggen22-Mar-12 9:23 
GeneralRe: WPF error on VS2008 Pin
jsdhgkjdsahklg22-Mar-12 10:00
jsdhgkjdsahklg22-Mar-12 10:00 
GeneralRe: WPF error on VS2008 Pin
Pete O'Hanlon22-Mar-12 10:34
mvePete O'Hanlon22-Mar-12 10:34 
GeneralRe: WPF error on VS2008 Pin
jsdhgkjdsahklg23-Mar-12 20:13
jsdhgkjdsahklg23-Mar-12 20:13 
AnswerRe: WPF error on VS2008 Pin
Eddy Vluggen22-Mar-12 11:13
professionalEddy Vluggen22-Mar-12 11:13 

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.