" )    tex.sprint (s) end \end{luacode} \newcommand{\replaceslash}[0]{\directlua{replaceslash(\luastringN{#0})}}  \DeclareFieldFormat{titlecase}{\replaceslash{#0}}  \begin{filecontents}{\jobname.bib} @software{key,   title  = {Software repository: /usr/share/php/PHP/CodeSniffer/src/Standards/Squiz/Sniffs/WhiteSpace/SuperfluousWhitespaceSniff.php},   author = {Sherwood, Greg}, } \end{filecontents} \addbibresource{\jobname.bib}  \begin{document} \cite{key}  \printbibliography \end{document}  