Task task8_regex_extraction

You'll find a text file called `mixed_content.txt` in the `./input` 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

23
Models Tested
65.2%
Success Rate
1m 23s
Avg Duration
35s - 4m 26s
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 41s 294.7
100.0% openrouter/openai/gpt-oss-120b 1m 21s 345.8
100.0% openrouter/x-ai/grok-3-mini 4m 26s 3575.0
100.0% openrouter/anthropic/claude-3.5-sonnet 54s 74.9
100.0% openrouter/google/gemini-2.5-pro 1m 27s 25.5
100.0% openrouter/openai/gpt-oss-20b 1m 53s 1024.8
100.0% openrouter/anthropic/claude-3.7-sonnet 58s 67.4
100.0% openrouter/anthropic/claude-haiku-4.5 52s 54.5
100.0% openrouter/deepseek/deepseek-v3.1-terminus 1m 35s 43.8
100.0% litellm/GLM-4.5-Air-FP8-dev 1m 59s 65.0
100.0% openrouter/anthropic/claude-sonnet-4.5 1m 4s 69.1
100.0% openrouter/openai/gpt-5-mini 1m 19s 129.4
100.0% openrouter/anthropic/claude-3.5-haiku 1m 8s 69.7
100.0% openrouter/anthropic/claude-sonnet-4 1m 11s 95.7
100.0% openrouter/openai/gpt-4.1-mini 59s 256.8
83.3% openrouter/openai/gpt-5-nano 2m 19s 628.0
83.3% openrouter/qwen/qwen3-coder 2m 8s 80.3
83.3% openrouter/openai/gpt-4o-mini 41s 132.4
66.7% openrouter/anthropic/claude-3-haiku 58s 47.1
66.7% openrouter/openai/gpt-4.1-nano 53s 102.5
0.0% openrouter/google/gemini-2.5-flash-preview-09-2025 45s 23.8
0.0% openrouter/google/gemini-2.5-flash-lite-preview-09-2025 37s 13.4
0.0% openrouter/deepseek/deepseek-chat-v3-0324 35s 29.5