in reply to need help with explaining the output
Read the Perl perlretut, especially the part on character classes. You probably want a common class like \w.
Your first regexp matches everything up until the second one matches.
It's a good use of your time to stop what you are doing, take 30 minutes, and read and understand the tutorial !
Update: links to docs
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: need help with explaining the output
by perlynewby (Scribe) on Jul 16, 2015 at 00:26 UTC | |
by stevieb (Canon) on Jul 16, 2015 at 00:36 UTC | |
by u65 (Chaplain) on Jul 16, 2015 at 11:32 UTC |