Human-written demonstration (OpenAssistant volunteers)· OpenAssistant (human-written)
OpenAssistant Conversations (oasst2)
Write a regex for finding polish phone number in text of any length.
In OpenAssistant data, “assistant” turns were written by human volunteers as demonstrations. They are not model outputs.
- User
Write a regex for finding polish phone number in text of any length.
- Assistant
Polish phone numbers follow this format:
+48 xx xxx xx xxBut it's possible to deviate into some derivative forms:
(48) xx xxx xx xx (+48) xx xxx xx xx 0048 xx xxx xx xx +48 xxxxxxxxx +48xxxxxxxxxWe can divide the regex into two parts: The first will capture the +48, and the second will capture the following nine digits.
(?:(?:00|\+)?48|\((?:00|\+)?48\))\s*\d{2}\s*\d{3}\s*\d{2}\s*\d{2}
Combining the two parts gives us the final regex.
(?:\s|^)((?:(?:00|\+)?48|\((?:00|\+)?48\))\s*\d{2}\s*\d{3}\s*\d{2}\s*\d{2})\b
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
Unspecified NVIDIA model (HelpSteer2)Compare side by side →
Unspecified NVIDIA model (HelpSteer2)Compare side by side →