Quiet regex warning about nested ?. Fix \z to match end of string.