in reply to Re: Using a regex to replace looping and splitting
in thread Using a regex to replace looping and splitting
Thanks so much for the response!
A few questions:
1. Do you alias Dumper as pp for Pretty Print, as in Python?
2. You use "=" rather than "=~" in the %hash assignment, how does it work in comparison
3. Would the regex assignment work just as well if you stuck the "big string" in between the hash assignment and the regex for example and skipped the $_ manipulation:
my %hash = $big_string = /([^|:]+):([^|:]+)(?:\z|\|)/g;
4. Can you elaborate on the Regex a little? I have questions but I'm not really sure where to start. The last clause includes an escaped "z" for example
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Using a regex to replace looping and splitting
by Cristoforo (Curate) on Jan 24, 2018 at 02:55 UTC |