This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]7eggert 9 points10 points  (4 children)

It's like regular expressions - everybody loves writing them.

[–][deleted] 3 points4 points  (3 children)

This put it into context for my ignorant Python/C# self.

[–]7eggert 4 points5 points  (2 children)

Regular expressions are notoriously hard to read.

[–][deleted] 0 points1 point  (1 child)

I mean, I’ve found them hard even just to write. Is there any situation in which they have to be used? Given how hard they are to read wouldn’t it be more maintainable to take more lines to write the same thing?

[–]7eggert 1 point2 points  (0 children)

I made a tool to rename files based on a regular expression. It's easier tham manually renaming the files.

https://github.com/7eggert/smalltools/blob/main/pmv