Anchor regex for branch test