Click here to Skip to main content
15,564,534 members
Home / Discussions / C#
   

C#

 
AnswerRe: using statements and IDisposable Pin
PIEBALDconsult14-Jul-09 18:09
professionalPIEBALDconsult14-Jul-09 18:09 
Questionwork with webBrowser properties? Pin
mr.mohsen14-Jul-09 11:16
mr.mohsen14-Jul-09 11:16 
AnswerRe: work with webBrowser properties? Pin
Adam R Harris14-Jul-09 11:26
Adam R Harris14-Jul-09 11:26 
GeneralRe: work with webBrowser properties? Pin
mr.mohsen14-Jul-09 11:39
mr.mohsen14-Jul-09 11:39 
GeneralRe: work with webBrowser properties? Pin
Adam R Harris14-Jul-09 11:51
Adam R Harris14-Jul-09 11:51 
GeneralRe: work with webBrowser properties? Pin
mr.mohsen14-Jul-09 21:19
mr.mohsen14-Jul-09 21:19 
GeneralRe: work with webBrowser properties? Pin
Adam R Harris14-Jul-09 21:28
Adam R Harris14-Jul-09 21:28 
QuestionRegEx not finding matches ... but it should Pin
Adam R Harris14-Jul-09 10:46
Adam R Harris14-Jul-09 10:46 
Hey All,

I am experiencing a strange issue, i have built and tested my RegEx in Expresso but when I call it from my code (C#) I am not getting any matches. If i step through and grab the values from the variables and put those in Expresso it works ....

RegEx:
Lead\sID\sNumber:\s*(?<LeadNumber>[^\r\n]*)(?:\r\n)+<br />
Prospect\sName:.*(?:\r\n)+<br />
Prospect\sContact:.*(?:\r\n)+<br />
Prospect\sPhone:.*(?:\r\n)+<br />
Marketing\sCampaign:.*(?:\r\n)+<br />
Prospect\sInformation:\s*(?:\r\n)+<br />
===============\s(?:\r\n)+<br />
(?<Company>[^\r\n]*)(?:\r\n)+<br />
(?<Address1>[^,]*),\s(?<Address2>[^\r\n]*)(?:\r\n)+<br />
(?<City>[^,]*),\s(?<State>[^\r\n]*)(?:\r\n)+<br />
(?<Country>[^,]*),\s(?<Zip>[^\r\n]*)(?:\r\n)+<br />
Contact\sName:\s*(?<FirstName>[^\s]*)\s(?<LastName>[^\r\n]*)(?:\r\n)+<br />
Contact\sPhone:\s*(?<Phone>[^\r\n]*)(?:\r\n)+



C#:
<br />
MatchCollection myMatches = Regex.Matches([Text], [RegEx], RegexOptions.Multiline | RegexOptions.IgnoreCase | RegexOptions.Compiled | RegexOptions.IgnorePatternWhitespace | RegexOptions.CultureInvariant);<br />


[Text] = the body of an email
[RegEx] = the above pattern

Any input or ideas would be greatly appreciated.
AnswerRe: RegEx not finding matches ... but it should Pin
dan!sh 14-Jul-09 20:53
professional dan!sh 14-Jul-09 20:53 
GeneralRe: RegEx not finding matches ... but it should Pin
Adam R Harris14-Jul-09 20:59
Adam R Harris14-Jul-09 20:59 
GeneralRe: RegEx not finding matches ... but it should Pin
dan!sh 14-Jul-09 23:30
professional dan!sh 14-Jul-09 23:30 
GeneralRe: RegEx not finding matches ... but it should Pin
Adam R Harris15-Jul-09 8:36
Adam R Harris15-Jul-09 8:36 
GeneralRe: RegEx not finding matches ... but it should Pin
dan!sh 15-Jul-09 9:25
professional dan!sh 15-Jul-09 9:25 
GeneralRe: RegEx not finding matches ... but it should Pin
Gideon Engelberth16-Jul-09 5:25
Gideon Engelberth16-Jul-09 5:25 
AnswerRe: RegEx not finding matches ... but it should Pin
riced14-Jul-09 22:15
riced14-Jul-09 22:15 
GeneralRe: RegEx not finding matches ... but it should Pin
Adam R Harris14-Jul-09 22:54
Adam R Harris14-Jul-09 22:54 
GeneralRe: RegEx not finding matches ... but it should Pin
riced14-Jul-09 23:10
riced14-Jul-09 23:10 
GeneralRe: RegEx not finding matches ... but it should Pin
Adam R Harris15-Jul-09 8:24
Adam R Harris15-Jul-09 8:24 
Questioni need an editor control for windows application(C#), do u have? or any idea... Pin
mr.mohsen14-Jul-09 10:31
mr.mohsen14-Jul-09 10:31 
AnswerRe: i need an editor control for windows application(C#), do u have? or any idea... Pin
Rajdeep.NET14-Jul-09 10:39
Rajdeep.NET14-Jul-09 10:39 
AnswerRe: i need an editor control for windows application(C#), do u have? or any idea... Pin
Adam R Harris14-Jul-09 10:53
Adam R Harris14-Jul-09 10:53 
GeneralRe: i need an editor control for windows application(C#), do u have? or any idea... Pin
mr.mohsen14-Jul-09 11:02
mr.mohsen14-Jul-09 11:02 
GeneralRe: i need an editor control for windows application(C#), do u have? or any idea... Pin
Adam R Harris14-Jul-09 11:24
Adam R Harris14-Jul-09 11:24 
GeneralRe: i need an editor control for windows application(C#), do u have? or any idea... Pin
mr.mohsen14-Jul-09 11:36
mr.mohsen14-Jul-09 11:36 
QuestionI have a question Pin
Rajdeep.NET14-Jul-09 9:38
Rajdeep.NET14-Jul-09 9:38 

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.