mr_mischief has asked for the wisdom of the Perl Monks concerning the following question:
It prints the line. Should it? What's matching the space?echo 'abcdef g' | perl -e '$_ = <>; print if m/[a-g]+\n/'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Is thie a regex strangeness?
by ikegami (Patriarch) on Jan 31, 2006 at 18:41 UTC | |
by mr_mischief (Monsignor) on Jan 31, 2006 at 19:26 UTC | |
|
Re: Is this a regex strangeness?
by blazar (Canon) on Feb 01, 2006 at 10:55 UTC |