Write regex that finds a line containing "SAMPLE TEXT", whole line
- User
Write regex that finds a line containing "SAMPLE TEXT", whole line
Assistant
Here's a regex that will match any line containing "SAMPLE TEXT":
^.*SAMPLE TEXT.*$Would you like me to explain how this regex works?
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.