fixed hash type detection regexp