\NeedsTeXFormat{LaTeX2e}
\ProvidesExplPackage{PrimeTeX/packages/Index}{2025-09-15}{1.0}{
	Index commands.
}

\NewDocumentCommand{\idx}{m}{
	\str_set:Nn \l_tmpa_str {#1}
	\str_replace_all:Nnn \l_tmpa_str {!} {~}
	\l_tmpa_str
	\index{\l_tmpa_str}
}