minor regex fix in docs & UserType sample