Hello, I recently started using Rust and so far I'm enjoying it!
I have a Vec<&str>
, elements are like apple.
, banana"?
, pears".
. I intend to remove extra .
, "
, ?
punctuations. How do I do it without checking each char?
Thank you!
Hello, I recently started using Rust and so far I'm enjoying it!
I have a Vec<&str>
, elements are like apple.
, banana"?
, pears".
. I intend to remove extra .
, "
, ?
punctuations. How do I do it without checking each char?
Thank you!
Use trim_end_matches instead.
That's what I need! Thanks for the speedy reply.
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.