TehPers
- 0 Posts
- 3 Comments
Joined 3 years ago
Cake day: June 21st, 2023
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
TehPers@beehaw.orgto
Technology@beehaw.org•Some iPhone Duo displays are cracking, seemingly all in the same wayEnglish
5·13 days agoIt’d be the Avenged Fold7.

\smight be the most obvious whitespace test, but the expectations are a bit more ambiguous when it comes to regex. Every regex runtime is different, so without looking it up, you’re going to end up with behavior you might not expect.Instead, if you want to match Unicode whitespace, you should use
\p{White_Space}in Unicode-aware mode (uorvflag).According to the docs, Rust’s char::is_whitespace checks if the value has the
White_Spaceproperty, andregexdoes the same in Unicode mode (which is the default).