regex for URL in a log file

Discussion in 'Perl Misc' started by Jaga, Oct 2, 2003.

  1. Jaga

    Jaga Guest

    > hail all,
    > I am trying to write a regular expression to match a url in a text

    file.
    > the test file looks like below under the *********
    > I would like to match all the urls a print them out...
    > I think this is easy for most but a pain in the neck for me
    >
    > thanks!
    >
    >
    > ************
    > °;V8q|Ã`<F- ÃL/&¤ ?Q ` h þ  
    > 6/$h :2003091520030922:
    > tfred@http://quintillium.com/mslegal/tssi986
    > URL  ssóq|Ã`<F- ÃL/²¥ ?Q ` h þ  
    > 6/$h :2003091520030922:
    > tfred@http://ninet/Lists/Announcements/DispForm.h
    >
    >
    Jaga, Oct 2, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Henrik_the_boss
    Replies:
    0
    Views:
    2,647
    Henrik_the_boss
    Nov 5, 2003
  2. Amratash
    Replies:
    0
    Views:
    520
    Amratash
    Apr 13, 2004
  3. unomystEz
    Replies:
    0
    Views:
    549
    unomystEz
    Nov 19, 2006
  4. Replies:
    3
    Views:
    756
    Reedick, Andrew
    Jul 1, 2008
  5. Jaga

    regex for URL in a log file

    Jaga, Oct 2, 2003, in forum: Perl Misc
    Replies:
    7
    Views:
    148
    Ted Zlatanov
    Oct 3, 2003
Loading...

Share This Page