Have a log from palo alto that has the url that is visited by the clients. The URL may appear like:

http://www.google.com?aa=blah www.google.com ftp://dev.sscc.com google.com google.com/aa?aa=111

How can we parse only the domain from this for checking against TPI?

asked 02 Aug '13, 00:42

tgulati's gravatar image

tgulati ♦♦
2061411
accept rate: 14%


Try this one

(?:\S+\:\/\/)?(?:www.)?(([a-z0-9\-]+).([a-z0-9-]+))\/?

link

answered 02 Aug '13, 00:45

tgulati's gravatar image

tgulati ♦♦
2061411
accept rate: 14%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×2
×1
×1
×1

Asked: 02 Aug '13, 00:42

Seen: 1,486 times

Last updated: 02 Aug '13, 00:45

Related questions