Click here to Skip to main content
15,891,431 members
Home / Discussions / C#
   

C#

 
AnswerRe: Generating code when works in design mode. Pin
Richard MacCutchan20-Oct-09 3:23
mveRichard MacCutchan20-Oct-09 3:23 
Questionpls help Pin
nirmalsat20-Oct-09 0:56
nirmalsat20-Oct-09 0:56 
AnswerRe: pls help Pin
J4amieC20-Oct-09 1:07
J4amieC20-Oct-09 1:07 
QuestionA matter of style : Switch or ?: [modified] Pin
mgkr20-Oct-09 0:18
mgkr20-Oct-09 0:18 
AnswerRe: A matter of style : Switch or ?: Pin
OriginalGriff20-Oct-09 0:31
mveOriginalGriff20-Oct-09 0:31 
AnswerRe: A matter of style : Switch or ?: Pin
Christian Graus20-Oct-09 0:39
protectorChristian Graus20-Oct-09 0:39 
AnswerRe: A matter of style : Switch or ?: Pin
Simon P Stevens20-Oct-09 0:40
Simon P Stevens20-Oct-09 0:40 
AnswerRe: A matter of style : Switch or ?: Pin
Jacobb Michael20-Oct-09 0:42
Jacobb Michael20-Oct-09 0:42 
AnswerRe: A matter of style : Switch or ?: Pin
Pete O'Hanlon20-Oct-09 0:42
mvePete O'Hanlon20-Oct-09 0:42 
AnswerRe: A matter of style : Switch or ?: Pin
nagendrathecoder20-Oct-09 0:50
nagendrathecoder20-Oct-09 0:50 
AnswerThank you all - Switch it is. Pin
mgkr20-Oct-09 1:06
mgkr20-Oct-09 1:06 
AnswerRe: A matter of style : Switch or ?: Pin
N a v a n e e t h20-Oct-09 1:06
N a v a n e e t h20-Oct-09 1:06 
AnswerRe: A matter of style : Switch or ?: Pin
Keith Barrow20-Oct-09 1:10
professionalKeith Barrow20-Oct-09 1:10 
GeneralRe: A matter of style : Switch or ?: Pin
PIEBALDconsult20-Oct-09 6:07
mvePIEBALDconsult20-Oct-09 6:07 
AnswerRe: A matter of style : Switch or ?: Pin
Nisha Agrawal20-Oct-09 1:14
Nisha Agrawal20-Oct-09 1:14 
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 

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.