use regex to check whether is facebook when change tab