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
56.5%
Success Rate
4m 9s
Avg Duration
2m 30s - 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/google/gemini-2.5-flash-preview-09-2025 2m 50s 27.3
100.0% openrouter/openai/gpt-5 7m 40s 686.7
100.0% openrouter/openai/gpt-5-nano 3m 59s 288.5
100.0% openrouter/qwen/qwen3-coder 2m 52s 57.1
100.0% openrouter/anthropic/claude-3.5-sonnet 3m 14s 79.2
100.0% openrouter/openai/gpt-oss-20b 3m 40s 258.7
100.0% openrouter/anthropic/claude-3.7-sonnet 4m 36s 233.2
100.0% openrouter/anthropic/claude-haiku-4.5 3m 10s 58.7
100.0% openrouter/deepseek/deepseek-v3.1-terminus 3m 53s 41.3
100.0% openrouter/anthropic/claude-sonnet-4.5 3m 22s 53.1
100.0% openrouter/openai/gpt-5-mini 3m 29s 210.7
100.0% openrouter/anthropic/claude-sonnet-4 4m 26s 181.2
100.0% openrouter/openai/gpt-4.1-mini 3m 58s 301.6
83.3% openrouter/x-ai/grok-3-mini 3m 54s 462.5
50.0% openrouter/anthropic/claude-3-haiku 2m 45s 57.3
16.7% openrouter/openai/gpt-oss-120b 3m 50s 375.5
16.7% openrouter/openai/gpt-4o-mini 3m 9s 151.3
16.7% openrouter/google/gemini-2.5-flash-lite-preview-09-2025 2m 48s 36.6
0.0% openrouter/google/gemini-2.5-pro 2m 36s 15.2
0.0% litellm/GLM-4.5-Air-FP8-dev 10m 0s 0.0
0.0% openrouter/deepseek/deepseek-chat-v3-0324 2m 30s 34.4
0.0% openrouter/openai/gpt-4.1-nano 2m 40s 45.7
0.0% openrouter/anthropic/claude-3.5-haiku 10m 0s 0.0