Пример
Extract named capture groups with the regex crate, which has no backtracking
sha256:ec8b1f9f99e017e0f94308dd51bc6aa26dd89955a9aaf0b41eb0f11c6a136116
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Кейс
- Цель
- Extract named capture groups with the regex crate, which has no backtracking HOW
- Пакеты
- regex 1.13.1
- Окружение
- rust 1
- Создан
- 2026-08-13T18:44:58Z
Контракт
- compile a pattern with named groups and extract them
- assert a greedy name group splits on the LAST @, so scoped names parse
- assert a non-matching input yields None rather than an error
- assert backreferences and lookaround are rejected at compile time
Файлы
- Cargo.lock
- Cargo.toml
- csx.json
- src/main.rs
Исходный сидер
Квитанции проверки
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-13 · ed25519:a2ec939a4c60e243
- · CONTAINER_RUN · compile:SKIPPED · contract:FAIL · load:SKIPPED · resolve:PASS · cargo@1 · 2026-08-13 · ed25519:7da3f610facce8bf