Any idea why doesn't recursion () work in tools like RainRegExp (therefore, probably not in Rainmeter proper either, say in a option of a WebParser parent measure)? Is it a PCRE version thing, a resource based limitation, or just a misunderstanding from my part? If it's supposed not to work, then are there any plans to make it available in the future by any chance?
The other day I was trying to capture some stuff from the weather.com JSON part while balancing (nesting) paranthesis. I got the method from SO, tested it in both regex101.com and regexr.com and it worked, but not in RainRegExp. I've since overcome the hurdle by using additional anchors in the regex pattern, but capturing an entire paranthesis enclosed part from a string like would be less prone to potential changes in the anchor location/presence that might happen while using the current method (though on the flip side, a recursion based regex is longer and harder to build)...
P.S. Yes, I know: regex isn't the right tool for such tasks. I don't care about this though, since it is nevertheless possible.
It is currently April 5th, 2020, 3:02 am
General topics related to Rainmeter.
1 post • Page 1 of 1
- Posts: 1101
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita