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

C#

 
QuestionVMR9 issue [modified] Pin
GrizzlyDoug26-Nov-08 7:09
GrizzlyDoug26-Nov-08 7:09 
AnswerRe: VMR9 issue Pin
MBrooker7-Mar-09 6:23
MBrooker7-Mar-09 6:23 
QuestionTry...Catch block Pin
EliottA26-Nov-08 6:54
EliottA26-Nov-08 6:54 
AnswerRe: Try...Catch block Pin
PIEBALDconsult26-Nov-08 7:29
mvePIEBALDconsult26-Nov-08 7:29 
AnswerRe: Try...Catch block Pin
Gideon Engelberth26-Nov-08 7:33
Gideon Engelberth26-Nov-08 7:33 
AnswerRe: Try...Catch block Pin
Paul Conrad26-Nov-08 9:23
professionalPaul Conrad26-Nov-08 9:23 
GeneralRe: Try...Catch block [modified] Pin
Luc Pattyn26-Nov-08 10:31
sitebuilderLuc Pattyn26-Nov-08 10:31 
QuestionSearching for URL's in... Pin
jas0n2326-Nov-08 6:19
jas0n2326-Nov-08 6:19 
Hi All!

I am trying to search for any URL inside files on my hard drive and these URL's could be anywhere inside the file, surrounded by letters/numbers etc and place each found URL into a listbox or string but it is proving to be very difficult. I was wondering if anybody might have any pointers/samps/links they could kindly share? Id appreciate any help I can get from anybody. Thanks for your time Smile | :)

Regards,
j.t.

P.S.
the code i have is as follows but something tells me i'm goin' about this the wrong way...:

private void SearchButton_Click(object sender, EventArgs e)
{
    string fName = FileList.SelectItem.Text;

    StreamReader testTxt = new StreamReader(fName);

    string allRead = testTxt.ReadToEnd();

    testTxt.Close();

    string regMatch = "http://www." + <word> + ".com"/".net"/".org";

    if (Regex.IsMatch(allRead, regMatch))
    {
        SearchQueryTextBox.Text = (regMatch + " was found.");
    }
    else
    {
        SearchQueryTextBox.Text = (regMatch + " could not be found.");
    }
}</word>


j.t.

AnswerRe: Searching for URL's in... Pin
Christian Graus26-Nov-08 7:44
protectorChristian Graus26-Nov-08 7:44 
QuestionRe: Searching for URL's in... Pin
jas0n2326-Nov-08 16:32
jas0n2326-Nov-08 16:32 
QuestionLinq - Inserting into IDENTITY column. Pin
Exception Duck26-Nov-08 5:52
Exception Duck26-Nov-08 5:52 
QuestionHTTPContext for Remote object. (i didn't find Remoting forum) Pin
Member 232448326-Nov-08 5:47
Member 232448326-Nov-08 5:47 
QuestionConfigurationSettings Pin
madhu.nzd26-Nov-08 4:21
madhu.nzd26-Nov-08 4:21 
QuestionAssertions Pin
CodingYoshi26-Nov-08 4:05
CodingYoshi26-Nov-08 4:05 
AnswerRe: Assertions Pin
User 665826-Nov-08 5:32
User 665826-Nov-08 5:32 
Questionneed help translating one certain line of code from c++ to c# Pin
mSh198526-Nov-08 3:24
mSh198526-Nov-08 3:24 
AnswerRe: need help translating one certain line of code from c++ to c# Pin
HosamAly26-Nov-08 3:39
HosamAly26-Nov-08 3:39 
GeneralRe: need help translating one certain line of code from c++ to c# Pin
mSh198526-Nov-08 4:10
mSh198526-Nov-08 4:10 
GeneralRe: need help translating one certain line of code from c++ to c# Pin
HosamAly26-Nov-08 4:18
HosamAly26-Nov-08 4:18 
Questionclass or struct Pin
Harvey Saayman26-Nov-08 2:46
Harvey Saayman26-Nov-08 2:46 
AnswerRe: class or struct Pin
Thomas Weller26-Nov-08 3:06
Thomas Weller26-Nov-08 3:06 
AnswerRe: class or struct Pin
Jan Sommer26-Nov-08 3:09
Jan Sommer26-Nov-08 3:09 
GeneralRe: class or struct Pin
Thomas Weller26-Nov-08 4:15
Thomas Weller26-Nov-08 4:15 
GeneralRe: class or struct Pin
Jan Sommer26-Nov-08 4:31
Jan Sommer26-Nov-08 4:31 
GeneralRe: class or struct Pin
Thomas Weller26-Nov-08 4:53
Thomas Weller26-Nov-08 4:53 

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.