Task task8_regex_extraction

You'll find a text file called `mixed_content.txt` in current directory containing various types of data mixed together.

Extract ALL instances of the following patterns using regular expressions:

- Email addresses
- Phone numbers (various formats: (123) 456-7890, 123-456-7890, 123.456.7890)
- URLs (http and https)
- Dates (formats: YYYY-MM-DD, MM/DD/YYYY, DD-MM-YYYY)

Generate a JSON file called `extracted_data.json` with the following structure:

```json
{
"emails": [
"[email protected]",
"[email protected]",
...
],
"phone_numbers": [
"(123) 456-7890",
"123-456-7890",
...
],
"urls": [
"https://example.com",
"http://example.org",
...
],
"dates": [
"2024-01-15",
"01/15/2024",
...
]
}
```

Each array should contain the extracted values in the order they appear in the file. Duplicates should be included if they appear multiple times.

PS: You are currently working in an automated system and cannot ask any question or have back and forth with an user.

Results

24
Models Tested
66.7%
Success Rate
1m 27s
Avg Duration
8s - 10m 0s
Duration Range

Details

Score Model Duration Session (KB) test_1_file_exists.sh test_2_valid_json.sh test_3_email_extraction.sh test_4_phone_extraction.sh test_5_url_extraction.sh test_6_date_extraction.sh
100.0% openrouter/openai/gpt-5 1m 38s 133.5
100.0% openrouter/google/gemini-3-pro-preview 1m 15s 48.7
100.0% openrouter/openai/gpt-5-nano 1m 9s 200.9
100.0% openrouter/anthropic/claude-opus-4.5 23s 35.1
100.0% openrouter/qwen/qwen3-coder 25s 43.1
100.0% openrouter/google/gemini-2.5-pro 1m 14s 35.0
100.0% openrouter/google/gemini-2.5-flash-lite-preview-09-2025 52s 55.2
100.0% openrouter/openai/gpt-oss-20b 52s 434.1
100.0% openrouter/anthropic/claude-haiku-4.5 17s 36.8
100.0% openrouter/deepseek/deepseek-v3.1-terminus 30s 38.7
100.0% openrouter/openai/gpt-5.2 38s 54.5
100.0% litellm/GLM-4.5-Air-FP8-dev 19s 47.8
100.0% openrouter/anthropic/claude-sonnet-4.5 25s 36.5
100.0% openrouter/x-ai/grok-code-fast-1 22s 36.1
100.0% openrouter/openai/gpt-5-mini 49s 83.7
100.0% openrouter/openai/gpt-4.1-mini 44s 111.9
83.3% openrouter/openai/gpt-4.1-nano 15s 43.9
66.7% openrouter/x-ai/grok-3-mini 1m 33s 682.2
66.7% openrouter/openai/gpt-4o-mini 23s 59.2
33.3% openrouter/google/gemini-2.5-flash-preview-09-2025 31s 69.1
0.0% litellm/DeepSeek-V3.2-sandbox 10m 0s 0.0
0.0% openrouter/openai/gpt-oss-120b 8s 22.6
0.0% openrouter/deepseek/deepseek-chat-v3-0324 9s 17.0
0.0% litellm/GLM-4.6-trtllm-sandbox 10m 0s 0.0