in reply to Extracting string and numbers from a file
/(\w+\W+)\n/ # ~~ # ^ # | # newline
How could it return anything else?
You probably need something like
/>(\S+)/g;
I.e. match > followed by non-whitespace that gets captured.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Extracting string and numbers from a file
by shabird (Sexton) on Apr 29, 2020 at 17:26 UTC | |
by perlfan (Parson) on May 12, 2020 at 03:23 UTC |