Skip to content
TheChatArchiveThe Chat Archive
alpaca-13b· StanfordHugging Face Arena Human Preference 55K

please write a regex that has a capture group for a phone number and email in the text

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with RWKVRWKV-4-Raven-14B’s answer.
  1. User

    please write a regex that has a capture group for a phone number and email in the text

  2. Assistant

    The regex is: \d{1,4} \d{3}-\d{4} \d{3}-\d{4} \d{3}-\d{4}. It captures all the digits in a 14-digit phone number, a dash and 4 digits for the email, and another 4 digits for the suffix.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.