Click here to Skip to main content
15,889,595 members
Home / Discussions / C#
   

C#

 
AnswerRe: System.Runtime.InteropServices.COMException (0x80040154) Pin
OriginalGriff12-Jan-10 23:09
mveOriginalGriff12-Jan-10 23:09 
AnswerRe: System.Runtime.InteropServices.COMException (0x80040154) Pin
Priya Prk13-Jan-10 8:39
Priya Prk13-Jan-10 8:39 
GeneralRe: System.Runtime.InteropServices.COMException (0x80040154) Pin
OriginalGriff14-Jan-10 1:49
mveOriginalGriff14-Jan-10 1:49 
GeneralRe: System.Runtime.InteropServices.COMException (0x80040154) Pin
Priya Prk14-Jan-10 21:34
Priya Prk14-Jan-10 21:34 
QuestionShowing Multiple records Pin
sjs4u12-Jan-10 18:53
sjs4u12-Jan-10 18:53 
AnswerRe: Showing Multiple records Pin
carlecomm13-Jan-10 19:21
carlecomm13-Jan-10 19:21 
Questionregex problem [modified] Pin
uglyeyes12-Jan-10 18:14
uglyeyes12-Jan-10 18:14 
AnswerRe: regex problem Pin
OriginalGriff12-Jan-10 23:05
mveOriginalGriff12-Jan-10 23:05 
Pasted your code into my app, and removed the StreamWriter stuff (otherwise identical)
private void button1_Click(object sender, EventArgs e)
    {
    string text = tbPath.Text;
    string match = @"(?<=\<div class=""middleadimggold""\>).*?(?=\</div\>)";
    if (Regex.IsMatch(text, match))
        {
        MessageBox.Show(text);
        }
    }


It works for me if I paste
<div class="middleadimggold">Data</div>
into the text box. The match works, and I get the message box - what doesn't happen with you?

All those who believe in psycho kinesis, raise my hand.

GeneralRe: regex problem Pin
uglyeyes13-Jan-10 0:25
uglyeyes13-Jan-10 0:25 
GeneralRe: regex problem Pin
OriginalGriff13-Jan-10 0:30
mveOriginalGriff13-Jan-10 0:30 
GeneralRe: regex problem Pin
uglyeyes13-Jan-10 18:07
uglyeyes13-Jan-10 18:07 
GeneralRe: regex problem Pin
OriginalGriff13-Jan-10 21:37
mveOriginalGriff13-Jan-10 21:37 
AnswerRe: regex problem Pin
carlecomm13-Jan-10 19:19
carlecomm13-Jan-10 19:19 
GeneralRe: regex problem Pin
uglyeyes13-Jan-10 19:28
uglyeyes13-Jan-10 19:28 
AnswerRe: regex problem Pin
Ravi Sant14-Apr-11 1:47
Ravi Sant14-Apr-11 1:47 
QuestionTroubles Drawing a Rubik Cube to windows form. Pin
Are Jay12-Jan-10 16:56
Are Jay12-Jan-10 16:56 
Questiongetting country code based on IP Pin
uglyeyes12-Jan-10 16:37
uglyeyes12-Jan-10 16:37 
AnswerRe: getting country code based on IP Pin
Dave Kreskowiak12-Jan-10 18:32
mveDave Kreskowiak12-Jan-10 18:32 
GeneralRe: getting country code based on IP Pin
uglyeyes12-Jan-10 19:10
uglyeyes12-Jan-10 19:10 
GeneralMessage Closed Pin
12-Jan-10 21:17
stancrm12-Jan-10 21:17 
GeneralRe: getting country code based on IP Pin
uglyeyes13-Jan-10 0:26
uglyeyes13-Jan-10 0:26 
GeneralRe: getting country code based on IP Pin
uglyeyes13-Jan-10 14:32
uglyeyes13-Jan-10 14:32 
Questioncall form problem? Pin
miss YY12-Jan-10 16:01
miss YY12-Jan-10 16:01 
AnswerRepost! Pin
DaveyM6912-Jan-10 22:21
professionalDaveyM6912-Jan-10 22:21 
AnswerCross Post Pin
<<Tash18>>13-Jan-10 0:50
<<Tash18>>13-Jan-10 0:50 

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.