Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my $ file = "c:/progra~1/apache~1/apache2/cgi-bin/test/new/Feb23-2006_ +0_test_error.txt"; if($file=~/(.*?)\/(\w+\.txt){ print "### $1 - $2####";}else{print "No + Match";}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: R.Exp. Matching from the Right
by Corion (Patriarch) on Feb 23, 2006 at 17:13 UTC | |
by ikegami (Patriarch) on Feb 23, 2006 at 18:21 UTC | |
|
Re: R.Exp. Matching from the Right
by ptum (Priest) on Feb 23, 2006 at 17:13 UTC | |
|
Re: R.Exp. Matching from the Right
by pileofrogs (Priest) on Feb 23, 2006 at 17:15 UTC | |
by kwaping (Priest) on Feb 23, 2006 at 19:39 UTC | |
by Anonymous Monk on Feb 23, 2006 at 18:10 UTC | |
by ikegami (Patriarch) on Feb 23, 2006 at 18:39 UTC | |
|
Re: R.Exp. Matching from the Right
by Praveen (Friar) on Feb 24, 2006 at 05:46 UTC | |
|
Re: R.Exp. Matching from the Right
by mk. (Friar) on Feb 24, 2006 at 17:14 UTC |