Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
"<div></div>" =~ /(?<start>.*?)((?!\< *\/[\w\d\-]+\>).)*/; print $+{start}; # it should print <div>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regex catch pattern that doesn't contain a pattern
by toolic (Bishop) on Apr 29, 2015 at 17:26 UTC | |
by AnomalousMonk (Archbishop) on Apr 29, 2015 at 18:03 UTC | |
by toolic (Bishop) on Apr 29, 2015 at 18:08 UTC | |
by AnomalousMonk (Archbishop) on Apr 29, 2015 at 18:19 UTC | |
by Anonymous Monk on Apr 29, 2015 at 22:42 UTC | |
|
Re: regex catch pattern that doesn't contain a pattern
by edimusrex (Monk) on Apr 29, 2015 at 17:26 UTC |