* Karen Etheridge <p...@froods.org> [2015-03-10 05:10]:
> Any time you include a path in a regex, you should surround it with \Q
> and \E. Those backslashes are going to bite you. :)

Hmm.

* Karen Etheridge <p...@froods.org> [2015-03-10 05:10]:
> Any time you interpolate a variable into a regex and its value is
> supposed to be just a string, you should surround it with \Q and \E.

FTFY.

It’s not just paths.

(You don’t need to quotemeta *every* time of course – but you *should*
reflexively stop and consider *whether* you need it, every time.)

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

Reply via email to