Quick encase Grep q...
 
Notifications
Clear all

Quick encase Grep question

5 Posts
3 Users
0 Reactions
584 Views
(@research1)
Estimable Member
Joined: 17 years ago
Posts: 165
Topic starter  

I need a quick grep search and I Don't have my Books on me.

I need a grep for the following

Display all websites starting with 'http' but not ending in the usual 'com' or 'co.uk', but to include sub links to a maximum of 10 sub links after the root website.

Any documents online on Grep would be useful too.

Kind Regards
L


   
Quote
 96hz
(@96hz)
Estimable Member
Joined: 17 years ago
Posts: 143
 

Im sure by now you have worked it out, but its always interesting when the GREP comes out.

http\/\/.{1,50}\.[^(com|(\.uk)].{2,6}(\/.{1,50}){0,10}
Not tested, but my starter for 10


   
ReplyQuote
(@research1)
Estimable Member
Joined: 17 years ago
Posts: 165
Topic starter  

Thanks, spot on.

Regards


   
ReplyQuote
 96hz
(@96hz)
Estimable Member
Joined: 17 years ago
Posts: 143
 

no worries, glad to assist


   
ReplyQuote
binarybod
(@binarybod)
Reputable Member
Joined: 17 years ago
Posts: 272
 

Any documents online on Grep would be useful too.

Try this for a quick reference http//www.addedbytes.com/cheat-sheets/regular-expressions-cheat-sheet/

Paul


   
ReplyQuote
Share: