How to add a goal in Google analytics with regular expression such as

I want to add Goal in Google Analytics with the same URL twice with a different regular expression such as

www.example.com/checkout#shipping www.example.com/checkout#payment 

these are on the same page with different tabs. So how I track user go which tab and other go where because google analytics just track my checkout page, not #shiiping and #payment