Skip to content
Discussion options

You must be logged in to vote

If you need help sharing a small Rust program with a short CSV string embedded inside of it, then I'd suggest seeking help in the Rust Community Discord.

The reason why I am insisting on this is because I cannot diagnose your problem from the information given. The regex r"(?m)\r\r" is valid and will find occurrences of \r\r: https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=0acb638cc7baecb7a0ab054428b58185

So I'm forced to conclude that your problem is elsewhere. Hence the request for an MRE. :-)

(Note that (?m) in your regex is strictly superfluous. The m flag only impacts the behavior of ^ and $, and neither ^ nor $ appear anywhere in your regex.)

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Maikel1963
Comment options

@BurntSushi
Comment options

Answer selected by Maikel1963
@Maikel1963
Comment options

@Maikel1963
Comment options

@BurntSushi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants