virudinesh has asked for the wisdom of the Perl Monks concerning the following question:
am tried different type of matching concept but don't match
$li ="aaaa g f mj http://www.jkghfdjbh.org jgbmhj gkhkh " ; if($li=~m/http://www.[a-z]|[A-Z].[a-z]/i) { print "$& \n"; }
output comes in error near this //
i want to fetch only http://www.jkghfdjbh.org from $li line
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: how to do match www.jkghfdjbh.org from $li?
by davido (Cardinal) on Jun 11, 2013 at 07:33 UTC | |
by AnomalousMonk (Archbishop) on Jun 11, 2013 at 11:18 UTC | |
by davido (Cardinal) on Jun 11, 2013 at 15:11 UTC | |
by hdb (Monsignor) on Jun 11, 2013 at 15:17 UTC | |
by davido (Cardinal) on Jun 11, 2013 at 15:22 UTC | |
Re: how to do match www.jkghfdjbh.org from $li?
by cdarke (Prior) on Jun 11, 2013 at 10:18 UTC | |
Re: how to do match www.jkghfdjbh.org from $li?
by hdb (Monsignor) on Jun 11, 2013 at 08:14 UTC |
Back to
Seekers of Perl Wisdom