regex help needed

John Galbrit jgalbrit at yahoo.co.uk
Thu Oct 14 19:36:33 PDT 2004


 --- Bennett Todd <bet at rahul.net> wrote: 
> 
> grep '[1-9][0-9]*\.[1-9][0-9]*\.[1-9][0-9]*\.[1-9][0-9]*' filename

Thanks! Though for anyone else interested, grep with the -o switch is
needed if you just want to extract the IP's only.

Thanks again!



	
	
		
___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun!  http://uk.messenger.yahoo.com



More information about the lfs-chat mailing list