Click here to Skip to main content
15,885,366 members
Home / Discussions / C#
   

C#

 
GeneralRe: A matter of style : Switch or ?: Pin
PIEBALDconsult20-Oct-09 6:04
mvePIEBALDconsult20-Oct-09 6:04 
AnswerRe: A matter of style : Switch or ?: Pin
Luc Pattyn20-Oct-09 1:53
sitebuilderLuc Pattyn20-Oct-09 1:53 
GeneralRe: A matter of style : Switch or ?: Pin
PIEBALDconsult20-Oct-09 5:49
mvePIEBALDconsult20-Oct-09 5:49 
AnswerRe: A matter of style : Switch or ?: Pin
PIEBALDconsult20-Oct-09 5:56
mvePIEBALDconsult20-Oct-09 5:56 
QuestionHow to lock the column width expansion in list view at run time Pin
@nisha 2n19-Oct-09 23:21
@nisha 2n19-Oct-09 23:21 
AnswerRe: How to lock the column width expansion in list view at run time Pin
Jacobb Michael20-Oct-09 1:48
Jacobb Michael20-Oct-09 1:48 
GeneralRe: How to lock the column width expansion in list view at run time Pin
SimpleData20-Oct-09 5:57
SimpleData20-Oct-09 5:57 
QuestionRegular Expression ? Pin
Jacobb Michael19-Oct-09 23:07
Jacobb Michael19-Oct-09 23: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 1:29
professionalEddy Vluggen20-Oct-09 1:29 
GeneralRe: Regular Expression ? Pin
Jacobb Michael20-Oct-09 1:58
Jacobb Michael20-Oct-09 1:58 
GeneralRe: Regular Expression ? Pin
Eddy Vluggen20-Oct-09 2:02
professionalEddy Vluggen20-Oct-09 2:02 
GeneralRe: Regular Expression ? Pin
Jacobb Michael20-Oct-09 2:13
Jacobb Michael20-Oct-09 2:13 
GeneralRe: Regular Expression ? Pin
J4amieC20-Oct-09 2:38
J4amieC20-Oct-09 2:38 
GeneralRe: Regular Expression ? Pin
Eddy Vluggen20-Oct-09 4:41
professionalEddy Vluggen20-Oct-09 4:41 
Questionhow to design page navigation window form using back and next button Pin
@nisha 2n19-Oct-09 22:49
@nisha 2n19-Oct-09 22:49 
AnswerRe: how to design page navigation window form using back and next button Pin
Calla19-Oct-09 23:00
Calla19-Oct-09 23:00 
AnswerRe: how to design page navigation window form using back and next button Pin
Jacobb Michael19-Oct-09 23:14
Jacobb Michael19-Oct-09 23:14 
GeneralRe: how to design page navigation window form using back and next button Pin
@nisha 2n19-Oct-09 23:26
@nisha 2n19-Oct-09 23:26 
GeneralRe: how to design page navigation window form using back and next button Pin
Jacobb Michael20-Oct-09 0:47
Jacobb Michael20-Oct-09 0:47 
AnswerRe: how to design page navigation window form using back and next button Pin
stancrm19-Oct-09 23:46
stancrm19-Oct-09 23:46 
QuestionMake main window wait for message box Pin
Lee Reid19-Oct-09 22:41
Lee Reid19-Oct-09 22:41 
AnswerRe: Make main window wait for message box Pin
dan!sh 19-Oct-09 22:50
professional dan!sh 19-Oct-09 22:50 
GeneralRe: Make main window wait for message box Pin
Lee Reid19-Oct-09 22:54
Lee Reid19-Oct-09 22:54 
AnswerRe: Make main window wait for message box Pin
Mirko198019-Oct-09 22:52
Mirko198019-Oct-09 22:52 
AnswerRe: Make main window wait for message box Pin
freakyit20-Oct-09 1:29
freakyit20-Oct-09 1: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.