Click here to Skip to main content
15,905,508 members
Home / Discussions / C#
   

C#

 
GeneralRe: Forms.Panel - stop OnKeyDown repeating Pin
BobJanova12-May-11 1:43
BobJanova12-May-11 1:43 
QuestionRegex to retrieve phone numbers Pin
Etienne_12311-May-11 0:39
Etienne_12311-May-11 0:39 
Hi
I need some help regarding Regex as my knowledge of it is rather poor. I have a string like the following:

"John Doe, john@bleh.com, (H) 0412623423234, (W) 1290034589345, Jane Doe, jane@bleh.com, (H) 041235423234, (W) 1290034589345"

What I need to do is to retrieve each Email address as well as each Home and Work number separately. After retrieving the separate values I would then like to store the related ones together as one comma-separated property like in the following example:

customer.Email = "john@bleh.com,jane@bleh.com";<br />
customer.HomePhone = "0412623423234,041235423234";


I already used a Regex pattern to retrieve all the email addresses in the string, but it seems to be a bit more tricky with the different phone numbers. Any advice/help?
AnswerRe: Regex to retrieve phone numbers Pin
Hiren solanki11-May-11 1:32
Hiren solanki11-May-11 1:32 
GeneralRe: Regex to retrieve phone numbers Pin
Etienne_12311-May-11 1:42
Etienne_12311-May-11 1:42 
GeneralRe: Regex to retrieve phone numbers Pin
Hiren solanki11-May-11 1:44
Hiren solanki11-May-11 1:44 
GeneralRe: Regex to retrieve phone numbers Pin
Etienne_12311-May-11 1:51
Etienne_12311-May-11 1:51 
GeneralRe: Regex to retrieve phone numbers Pin
Hiren solanki11-May-11 1:53
Hiren solanki11-May-11 1:53 
AnswerRe: Regex to retrieve phone numbers Pin
PIEBALDconsult11-May-11 2:40
mvePIEBALDconsult11-May-11 2:40 
QuestionCan't apply Contrast of Image Pin
Anubhava Dimri11-May-11 0:04
Anubhava Dimri11-May-11 0:04 
AnswerRe: Can't apply Contrast of Image Pin
Luc Pattyn11-May-11 0:21
sitebuilderLuc Pattyn11-May-11 0:21 
GeneralRe: Can't apply Contrast of Image Pin
Anubhava Dimri11-May-11 0:35
Anubhava Dimri11-May-11 0:35 
GeneralRe: Can't apply Contrast of Image Pin
Luc Pattyn11-May-11 0:46
sitebuilderLuc Pattyn11-May-11 0:46 
GeneralRe: Can't apply Contrast of Image [modified] Pin
Anubhava Dimri11-May-11 1:00
Anubhava Dimri11-May-11 1:00 
GeneralRe: Can't apply Contrast of Image Pin
Richard MacCutchan11-May-11 2:45
mveRichard MacCutchan11-May-11 2:45 
QuestionRe: Can't apply Contrast of Image Pin
Mark Salsbery11-May-11 5:41
Mark Salsbery11-May-11 5:41 
AnswerRe: Can't apply Contrast of Image Pin
Anubhava Dimri11-May-11 18:19
Anubhava Dimri11-May-11 18:19 
GeneralRe: Can't apply Contrast of Image Pin
Mark Salsbery11-May-11 18:56
Mark Salsbery11-May-11 18:56 
AnswerRe: Can't apply Contrast of Image Pin
_Erik_11-May-11 5:46
_Erik_11-May-11 5:46 
GeneralRe: Can't apply Contrast of Image Pin
Mark Salsbery11-May-11 6:26
Mark Salsbery11-May-11 6:26 
GeneralRe: Can't apply Contrast of Image Pin
_Erik_12-May-11 4:35
_Erik_12-May-11 4:35 
QuestionHow to get the physical path of a virtual directory? Pin
PravinSingh10-May-11 20:26
PravinSingh10-May-11 20:26 
AnswerRe: How to get the physical path of a virtual directory? Pin
Luc Pattyn11-May-11 0:29
sitebuilderLuc Pattyn11-May-11 0:29 
GeneralRe: How to get the physical path of a virtual directory? Pin
PravinSingh11-May-11 1:27
PravinSingh11-May-11 1:27 
AnswerRe: How to get the physical path of a virtual directory? Pin
Luc Pattyn11-May-11 1:38
sitebuilderLuc Pattyn11-May-11 1:38 
AnswerRe: How to get the physical path of a virtual directory? Pin
Mark Salsbery11-May-11 6:32
Mark Salsbery11-May-11 6:32 

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.