Woman thanks police after purse was snatched