in reply to What's the "...0" mean?
Thanks for that, guys.
However, I'm still not clear on the practicalities of this in the context of my example.
If the input file is:
zabcz zzabczz zzzabczzz
And I run the one-liner:
perl -ne 'print if s/.*?(?=abc)//...0' <infile
I get this output:
abcz zzabczz zzzabczzz
If I change it to "...1", I get the *same* output. Why?
If I change it to "...2", I get this output:
zabcz zzabczz abczzz
What's going on?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: What's the "...0" mean?
by JavaFan (Canon) on Oct 15, 2010 at 05:25 UTC | |
by tel2 (Pilgrim) on Oct 15, 2010 at 22:42 UTC | |
by lidden (Curate) on Oct 15, 2010 at 22:56 UTC | |
by morgon (Priest) on Oct 15, 2010 at 23:24 UTC |