BurntSushi/rust-pcre2

using regex to split and replace text in a string

开放

#26 创建于 2022年11月22日

 (7 条评论) (0 个反应) (0 位负责人)C (40 个派生)github user discovery
enhancementhelp wanted

仓库指标

星标
 (63 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

https://github.com/BurntSushi/rust-pcre2/blob/2f87eb93e5b688a23e02354af116176e13c85d38/src/bytes.rs#L400 how can this regex be used to split / replace text in a string? i tried using the split function but is erroring with the message "required for Regex to implement Pattern<'_>". Not sure if I am misunderstanding how to use the regex to split strings or if this is a bug?

贡献者指南