Click here to Skip to main content
15,881,882 members
Home / Discussions / C#
   

C#

 
GeneralRe: work with webBrowser properties? Pin
mr.mohsen14-Jul-09 10:39
mr.mohsen14-Jul-09 10:39 
GeneralRe: work with webBrowser properties? Pin
Adam R Harris14-Jul-09 10:51
Adam R Harris14-Jul-09 10:51 
GeneralRe: work with webBrowser properties? Pin
mr.mohsen14-Jul-09 20:19
mr.mohsen14-Jul-09 20:19 
GeneralRe: work with webBrowser properties? Pin
Adam R Harris14-Jul-09 20:28
Adam R Harris14-Jul-09 20:28 
QuestionRegEx not finding matches ... but it should Pin
Adam R Harris14-Jul-09 9:46
Adam R Harris14-Jul-09 9:46 
AnswerRe: RegEx not finding matches ... but it should Pin
dan!sh 14-Jul-09 19:53
professional dan!sh 14-Jul-09 19:53 
GeneralRe: RegEx not finding matches ... but it should Pin
Adam R Harris14-Jul-09 19:59
Adam R Harris14-Jul-09 19:59 
GeneralRe: RegEx not finding matches ... but it should Pin
dan!sh 14-Jul-09 22:30
professional dan!sh 14-Jul-09 22:30 
Your regex works fine. It is finding the match.

string sMatch = @" Lead Overview: 
=========== 
Lead ID Number: 1234567 
Prospect Name: Some Prospect
Prospect Contact: Some Contact
Prospect Phone: 1234567890 

Marketing Campaign: Marketing Campaign Example

Prospect Information: 
=============== 
Company Name
Address1, Address2 
New York, NY 
United States, 12345 

Contact Name: Some Contact 
Contact Phone: 1234567890 
Company Email: contact@email.com";

bool IsMatchFound = Regex.IsMatch(sMatch, @"Lead\sID\sNumber:\s*(?<LeadNumber>[^\r\n]*)(?:\r\n)+Prospect\sName:.*(?:\r\n)+Prospect\sContact:.*(?:\r\n)+Prospect\sPhone:.*(?:\r\n)+Marketing\sCampaign:.*(?:\r\n)+Prospect\sInformation:\s*(?:\r\n)+===============\s(?:\r\n)+(?<Company>[^\r\n]*)(?:\r\n)+(?<Address1>[^,]*),\s(?<Address2>[^\r\n]*)(?:\r\n)+(?<City>[^,]*),\s(?<State>[^\r\n]*)(?:\r\n)+(?<Country>[^,]*),\s(?<Zip>[^\r\n]*)(?:\r\n)+Contact\sName:\s*(?<FirstName>[^\s]*)\s(?<LastName>[^\r\n]*)(?:\r\n)+Contact\sPhone:\s*(?<Phone>[^\r\n]*)(?:\r\n)+");

GeneralRe: RegEx not finding matches ... but it should Pin
Adam R Harris15-Jul-09 7:36
Adam R Harris15-Jul-09 7:36 
GeneralRe: RegEx not finding matches ... but it should Pin
dan!sh 15-Jul-09 8:25
professional dan!sh 15-Jul-09 8:25 
GeneralRe: RegEx not finding matches ... but it should Pin
Gideon Engelberth16-Jul-09 4:25
Gideon Engelberth16-Jul-09 4:25 
AnswerRe: RegEx not finding matches ... but it should Pin
riced14-Jul-09 21:15
riced14-Jul-09 21:15 
GeneralRe: RegEx not finding matches ... but it should Pin
Adam R Harris14-Jul-09 21:54
Adam R Harris14-Jul-09 21:54 
GeneralRe: RegEx not finding matches ... but it should Pin
riced14-Jul-09 22:10
riced14-Jul-09 22:10 
GeneralRe: RegEx not finding matches ... but it should Pin
Adam R Harris15-Jul-09 7:24
Adam R Harris15-Jul-09 7:24 
Questioni need an editor control for windows application(C#), do u have? or any idea... Pin
mr.mohsen14-Jul-09 9:31
mr.mohsen14-Jul-09 9:31 
AnswerRe: i need an editor control for windows application(C#), do u have? or any idea... Pin
Rajdeep.NET14-Jul-09 9:39
Rajdeep.NET14-Jul-09 9:39 
AnswerRe: i need an editor control for windows application(C#), do u have? or any idea... Pin
Adam R Harris14-Jul-09 9:53
Adam R Harris14-Jul-09 9:53 
GeneralRe: i need an editor control for windows application(C#), do u have? or any idea... Pin
mr.mohsen14-Jul-09 10:02
mr.mohsen14-Jul-09 10:02 
GeneralRe: i need an editor control for windows application(C#), do u have? or any idea... Pin
Adam R Harris14-Jul-09 10:24
Adam R Harris14-Jul-09 10:24 
GeneralRe: i need an editor control for windows application(C#), do u have? or any idea... Pin
mr.mohsen14-Jul-09 10:36
mr.mohsen14-Jul-09 10:36 
QuestionI have a question Pin
Rajdeep.NET14-Jul-09 8:38
Rajdeep.NET14-Jul-09 8:38 
AnswerRe: I have a question PinPopular
WebMaster14-Jul-09 8:49
WebMaster14-Jul-09 8:49 
GeneralRe: I have a question Pin
Rajdeep.NET14-Jul-09 9:32
Rajdeep.NET14-Jul-09 9:32 
AnswerRe: I have a question Pin
Not Active14-Jul-09 11:05
mentorNot Active14-Jul-09 11:05 

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.