% RHYBUDD: regex yn l3 experimental
\RequirePackage{etoolbox,currfile,xparse}
\@ifclassloaded{standalone}{\relax}{\RequirePackage{standalone}}
\usetikzlibrary{external}
\ExplSyntaxOn
\tl_new:N \g_enext_figurename_tl
\cs_new_protected_nopar:Nn \enext_settofilename:
{% RHYBUDD: \l__file_internal_name_tl yn fewnol
% hopefully allows use of \file_input as well as than \input
% egreg: comment re. avoiding l3regex
\seq_set_split:NnV \l_tempa_seq { / } { \l__file_internal_name_tl }
\seq_pop_right:NN \l_tempa_seq \l_tempa_tl