in reply to An overlapping regex capture
my @parts = split '|', $id; # ouch! what trivial error! is: /\|/ see c +horoba below my $filename = $parts[0]; # or simply my $filename = (split '|', $id)[0]; # ouch! what trivial error! is: / +\|/ see choroba below
PS as general rule try to isolate your problem/question as much as you can and then choose a meningful title: An overlapping regex capture does not describe well what you are asking for.. or I'm totally missing the point..
HtH
L*
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: An overlapping regex capture
by choroba (Cardinal) on Jun 21, 2017 at 19:59 UTC | |
|
Re^2: An overlapping regex capture
by Peter Keystrokes (Beadle) on Jun 21, 2017 at 20:20 UTC | |
by Discipulus (Canon) on Jun 21, 2017 at 20:49 UTC | |
by Peter Keystrokes (Beadle) on Jun 21, 2017 at 21:11 UTC | |
by Discipulus (Canon) on Jun 21, 2017 at 21:21 UTC | |
by Peter Keystrokes (Beadle) on Jun 22, 2017 at 11:52 UTC | |
by poj (Abbot) on Jun 22, 2017 at 15:33 UTC | |
by 1nickt (Canon) on Jun 22, 2017 at 12:01 UTC | |
by Peter Keystrokes (Beadle) on Jun 22, 2017 at 18:17 UTC | |
| |
by Peter Keystrokes (Beadle) on Jun 21, 2017 at 21:47 UTC | |
by 1nickt (Canon) on Jun 21, 2017 at 22:11 UTC | |
by hexcoder (Curate) on Jun 22, 2017 at 11:22 UTC | |
by haukex (Archbishop) on Jun 22, 2017 at 12:40 UTC | |
by Peter Keystrokes (Beadle) on Jun 22, 2017 at 09:54 UTC |