Regex check correct group for --top/bottom