Click here to Skip to main content
15,511,981 members
Home / Discussions / C#
   

C#

 
GeneralRe: A matter of style : Switch or ?: Pin
PIEBALDconsult20-Oct-09 7:04
professionalPIEBALDconsult20-Oct-09 7:04 
AnswerRe: A matter of style : Switch or ?: Pin
Luc Pattyn20-Oct-09 2:53
sitebuilderLuc Pattyn20-Oct-09 2:53 
GeneralRe: A matter of style : Switch or ?: Pin
PIEBALDconsult20-Oct-09 6:49
professionalPIEBALDconsult20-Oct-09 6:49 
AnswerRe: A matter of style : Switch or ?: Pin
PIEBALDconsult20-Oct-09 6:56
professionalPIEBALDconsult20-Oct-09 6:56 
QuestionHow to lock the column width expansion in list view at run time Pin
@nisha 2n20-Oct-09 0:21
@nisha 2n20-Oct-09 0:21 
AnswerRe: How to lock the column width expansion in list view at run time Pin
Jacobb Michael20-Oct-09 2:48
Jacobb Michael20-Oct-09 2:48 
GeneralRe: How to lock the column width expansion in list view at run time Pin
SimpleData20-Oct-09 6:57
SimpleData20-Oct-09 6:57 
QuestionRegular Expression ? Pin
Jacobb Michael20-Oct-09 0:07
Jacobb Michael20-Oct-09 0:07 
Hi all

Can some one lead me for a good logic to generate the regular expression dynamically.

Example:

I give an input like bellow

1. Us phone no - (910)456-8970 => regular expression is: @"\(\d{3}\)\s\d{3}-\d{4}"

2. Email Id - miltoncse00@yahoo.com => string pattern=@"^[a-z][a-z|0-9|]*([_][a-z|0-9]+)*([.][a-z|" +
@"0-9]+([_][a-z|0-9]+)*)?@[a-z][a-z|0-9|]*\.([a-z]" +
@"[a-z|0-9]*(\.[a-z][a-z|0-9]*)?)$";

My Need,

By getting (910)456-8970 this string i want to construct the regular expression like @"\(\d{3}\)\s\d{3}-\d{4}"

and i have to do for all the string vice versa. Can some tell me some techniques or logic to incorporate.

My Real Problem With Regular Expression :

I have to mask the fields in website based on the pattern like usphone,emailid etc...

thanks in Adavance
AnswerRe: Regular Expression ? Pin
Eddy Vluggen20-Oct-09 2:29
professionalEddy Vluggen20-Oct-09 2:29 
GeneralRe: Regular Expression ? Pin
Jacobb Michael20-Oct-09 2:58
Jacobb Michael20-Oct-09 2:58 
GeneralRe: Regular Expression ? Pin
Eddy Vluggen20-Oct-09 3:02
professionalEddy Vluggen20-Oct-09 3:02 
GeneralRe: Regular Expression ? Pin
Jacobb Michael20-Oct-09 3:13
Jacobb Michael20-Oct-09 3:13 
GeneralRe: Regular Expression ? Pin
J4amieC20-Oct-09 3:38
J4amieC20-Oct-09 3:38 
GeneralRe: Regular Expression ? Pin
Eddy Vluggen20-Oct-09 5:41
professionalEddy Vluggen20-Oct-09 5:41 
Questionhow to design page navigation window form using back and next button Pin
@nisha 2n19-Oct-09 23:49
@nisha 2n19-Oct-09 23:49 
AnswerRe: how to design page navigation window form using back and next button Pin
Calla20-Oct-09 0:00
Calla20-Oct-09 0:00 
AnswerRe: how to design page navigation window form using back and next button Pin
Jacobb Michael20-Oct-09 0:14
Jacobb Michael20-Oct-09 0:14 
GeneralRe: how to design page navigation window form using back and next button Pin
@nisha 2n20-Oct-09 0:26
@nisha 2n20-Oct-09 0:26 
GeneralRe: how to design page navigation window form using back and next button Pin
Jacobb Michael20-Oct-09 1:47
Jacobb Michael20-Oct-09 1:47 
AnswerRe: how to design page navigation window form using back and next button Pin
stancrm20-Oct-09 0:46
stancrm20-Oct-09 0:46 
QuestionMake main window wait for message box Pin
Lee Reid19-Oct-09 23:41
Lee Reid19-Oct-09 23:41 
AnswerRe: Make main window wait for message box Pin
dan!sh 19-Oct-09 23:50
professional dan!sh 19-Oct-09 23:50 
GeneralRe: Make main window wait for message box Pin
Lee Reid19-Oct-09 23:54
Lee Reid19-Oct-09 23:54 
AnswerRe: Make main window wait for message box Pin
Mirko198019-Oct-09 23:52
Mirko198019-Oct-09 23:52 
AnswerRe: Make main window wait for message box Pin
freakyit20-Oct-09 2:29
freakyit20-Oct-09 2:29 

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.