Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > regex for URL in a log file

Reply
Thread Tools

regex for URL in a log file

 
 
Jaga
Guest
Posts: n/a
 
      10-02-2003
> 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  ssq|`<F- L/ ?Q ` h  
> 6/$h :2003091520030922:
> tfred@http://ninet/Lists/Announcements/DispForm.h
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How make regex that means "contains regex#1 but NOT regex#2" ?? seberino@spawar.navy.mil Python 3 07-01-2008 03:06 PM
How to log independently of other webapps using log4j? Also, reading from log file from within servlet? unomystEz Java 0 11-19-2006 10:42 AM
redirect URL's, return URL's, and URL Parameters Jon paugh ASP .Net 1 07-10-2004 05:29 AM
Urgent Pls: Facing problem in reading Log information from Log file, created by IIS Amratash ASP .Net 0 04-13-2004 09:08 AM
regex for URL in a log file Jaga Perl Misc 7 10-03-2003 10:06 AM



Advertisments