Quote:
Originally Posted by NiLuJe
@rtiangha: 2 backslashes.
That commit was simply meant as a reference to me messing up the regex twice today ^^. And to illustrate the fact that nickel could happily purge previously indexed content if you mess it up badly enough .
The content of my earlier post is correct, and is what most users should care about, not me losing my mind in commit logs .
EDIT: The live version of this block of code has been fixed to use less confusing escaping shenanigans .
|
There's one trick I sometimes do when multiple layers of escaping are needed. If you replace \. with [.], it essentially does the same thing, but without backslashes.