Help!!!


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Help!!!
# 1  
Old 01-15-2009
Help!!!

source text:
<snip>
qsadf
sdfasfasdfasddf-=13
fdsafds ,dasfas
http://www.sohu.com/paths.htm
adfs=127.0.0.1
https://www.sohu.com/paths.htm
http://www.sohu.com/paths.html
fsdafs=192.168.1.1
https://www.sohu.com/paths.html
fjasdlfjd
sdafasf=13124124
<snip>


I want match the http URL in the text. Using "egrep -i -e '^https?://([A-Za-z0-9./].)*html?' " does not match anyone, but "egrep -i -e '\<https?://([A-Za-z0-9./].)*html?' " is ok?
# 2  
Old 01-15-2009
Rule 11: Post questions with descriptive subjects.

Second, please edit your post and put [code] tags around that source if it contains special characters. And while you're at it, tell us what you want to do.
# 3  
Old 01-15-2009
Quote:
Originally Posted by pludi
Rule 11: Post questions with descriptive subjects.

Second, please edit your post and put [code] tags around that source if it contains special characters. And while you're at it, tell us what you want to do.
please don't do the mods work! an infraction for the subject is already added... i'll give him some time to change the subject on his own or request a change.

thank you,
DN2
# 4  
Old 01-16-2009
Do have in mind that in grep syntax "*" means as many times they can be, whereas in ls, for example, "*" means everything.
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question