in reply to Re^2: regex is not working as I intended
in thread regex is not working as I intended
I forgot to mention that this regex is used repeatedly on the same string to parse out parameter and value pairs, such as the following:
That is why the lookbehind and lookahead assertions are used, even though they cannot possibly match at the beginning or end of the overall parameter string, they can match at intermediate positions as the regex is used to walk over the value of the parameter string parsing out individual parm and value pairs.
radius = 3, density = .014, URL = "https://www.geometry.org", max_no_of_attempts = 4
That is why the lookbehind and lookahead assertions are used, even though they cannot possibly match at the beginning or end of the overall parameter string, they can match at intermediate positions as the regex is used to walk over the value of the parameter string parsing out individual parm and value pairs.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: regex is not working as I intended
by AnomalousMonk (Archbishop) on Jan 23, 2018 at 01:05 UTC | |
Re^4: regex is not working as I intended
by GrandFather (Saint) on Jan 22, 2018 at 22:38 UTC | |
Re^4: regex is not working as I intended
by ikegami (Patriarch) on Jan 22, 2018 at 23:15 UTC |
In Section
Seekers of Perl Wisdom