]*name="filter_id"[^>]*>/', $html, $matches)) { echo "Filter ID: " . $matches[0] . "\n"; } if (preg_match('/]*name="filter_name"[^>]*>/', $html, $matches)) { echo "Filter Name: " . $matches[0] . "\n"; } if (preg_match('/]*name="filter_email"[^>]*>/', $html, $matches)) { echo "Filter Email: " . $matches[0] . "\n"; } // Check select with role filter if (preg_match('/]*name="filter_role"[^>]*>.*?<\/select>/s', $html, $matches)) { echo "\nFilter Role Select:\n"; // Extract just the opening tag and first option if (preg_match('/]*>.*?]*>.*?<\/option>/s', $matches[0], $snippet)) { echo substr($snippet[0], 0, 200) . "...\n"; } } echo "\n=== Done ===\n";