(Shortest import: from brian2.utils.stringtools import get_identifiers)
from brian2.utils.stringtools import get_identifiers)
Return all the identifiers in a given string expr, that is everything that matches a programming language variable like expression, which is here implemented as the regexp \b[A-Za-z_][A-Za-z0-9_]*\b.
expr
\b[A-Za-z_][A-Za-z0-9_]*\b