/^(?:\/(?=$))?$/
this rule is used to match the
of an empty string."".match(/^(?:\/(?=$))?$/)
["", index: 0, input: "", groups: undefined]
"1".match(/^(?:\/(?=$))?$/)
null
? = I know this is an antecedent assertion, which means that it must be followed by $.
but I don"t understand how the whole regular match is empty. (? = $) it has been defined that it must be followed by $, so if there is at least $, how can it be empty?