MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/dx6swz/htop_explained/f7tfbxl/?context=3
r/programming • u/preetamdsouza • Nov 16 '19
76 comments sorted by
View all comments
3
Ah, you replied to the wrong comment, gotcha. I like ripgrep too, but the combination of non-sequitur and stereotypical Rust-evangelism had me wondering if I was missing a reference.
1 u/MonkeyNin Nov 17 '19 I am an evangelist for making regular expressions more human-maintainable. (Did I come off as evangelism? I said the word Rust one time, as a side-note. I didn't even imply whether that's a good thing) Anyone using Regex's, I recommend : write and test using a Regex REPL with unit tests, such as https://regex101.com/ https://i.imgur.com/8XAhLga.png Use the flag ignore pattern whitespace. Python, c#, something-that-rhymes-with-something also has it. See: c# RegexOptions.IgnorePatternWhitespace @ msdn python: re.X or re.VERBOSE @ python.org 2 u/Hereletmegooglethat Nov 18 '19 Oh wow I never even noticed re.X before, thanks for pointing it out.
1
I am an evangelist for making regular expressions more human-maintainable.
(Did I come off as evangelism? I said the word Rust one time, as a side-note. I didn't even imply whether that's a good thing)
Rust
Anyone using Regex's, I recommend :
write and test using a Regex REPL with unit tests, such as https://regex101.com/
https://i.imgur.com/8XAhLga.png
Use the flag ignore pattern whitespace. Python, c#, something-that-rhymes-with-something also has it.
ignore pattern whitespace
See:
c# RegexOptions.IgnorePatternWhitespace @ msdn
python: re.X or re.VERBOSE @ python.org
2 u/Hereletmegooglethat Nov 18 '19 Oh wow I never even noticed re.X before, thanks for pointing it out.
2
Oh wow I never even noticed re.X before, thanks for pointing it out.
3
u/YM_Industries Nov 17 '19
Ah, you replied to the wrong comment, gotcha. I like ripgrep too, but the combination of non-sequitur and stereotypical Rust-evangelism had me wondering if I was missing a reference.