Minor tweak to a comment that was bugging me
Added a beginning-of-line anchor to assignRegex