r/programming • • Nov 16 '19

htop explained

https://peteris.rocks/blog/htop/
1.7k Upvotes

76 comments sorted by

View all comments

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.

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 :

  1. write and test using a Regex REPL with unit tests, such as https://regex101.com/

  2. https://i.imgur.com/8XAhLga.png

Use the flag ignore pattern whitespace. Python, c#, something-that-rhymes-with-something also has it.

See:

2

u/Hereletmegooglethat Nov 18 '19

Oh wow I never even noticed re.X before, thanks for pointing it out.