I was trying to replace a list of journal names with their abbreviations. Some journal names contain an ampersand symbol, but the codes below do not seem to work.
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{example.bib}
@article{example,
author = {First Last},
title = {Title},
journal = {Subject \& Subject},
year = {0000}, volume = {0}, number = {0},
}
\end{filecontents}
\usepackage{biblatex}
\addbibresource{example.bib}
\DeclareSourcemap{\maps[datatype=bibtex]{\map{\step[fieldsource=journal, match={Subject \& Subject}, replace={S\& S}]}}}
\begin{document}
\nocite{*}
\printbibliography
\end{document}