An explanation of how to use "Lookahead assertions" in regular expressions in Rainmeter / WebParser.
http://rainmeter.net/cms/Tips-LookAhead
It is currently March 28th, 2024, 9:56 am
Added a new Tips & Tricks to the main site.
- MerlinTheRed
- Rainmeter Sage
- Posts: 889
- Joined: September 6th, 2011, 6:34 am
Re: Added a new Tips & Tricks to the main site.
Thanks for that. I only recently discovered lookaheads when I was writing the syntax definition for the sublime package, and found them extremely useful. This entry will hopefully help more people notice them sooner.
Of course you can't start to explain all the Lookaround functionality, but I think it might be nice if you included that you can also do a negative lookahead with (?!something) somewhere in there.
Of course you can't start to explain all the Lookaround functionality, but I think it might be nice if you included that you can also do a negative lookahead with (?!something) somewhere in there.