Make '=' on root traverse scopes to find topmost place.
Use jregex find instead of match.

This is because we want ~= to not require complete matches; to get
complete matches back just use ^ and $.