|Syntactic Confectionery Delight|
Re: [Perl 5.14, regex]: Problems with /g, \G and pos()by wjw (Curate)
|on Oct 19, 2013 at 13:41 UTC||Need Help??|
Here under the "\G Magic with Perl" section.
Subsequently, I Googled "perl position of last match" which led me to this which led me to try the following:
which I think might help describe what happens...(of course I could be wrong)
When \G goes to the position of the previous match to find the next white space, it is already beyond the last position of white space in the string. The warning is sort of uninformative though... . I gotta wonder if the last position and first position being equal leave the \G wondering where to go next?
Am looking forward to other responses to this by those who know...
(yet another opportunity to display my ignorance! Hot Damn!)
UPDATE: looks like the tool mentioned Regex analysis might be helpful with this Hope that is helpful....