Parse the reference that starts at text[at] (a $), if any.
text[at]
$
The text.
The index of a $.
The reference, or undefined when the $ starts none.
undefined
Parse the reference that starts at
text[at](a$), if any.