User avatar
Jürgen Hubert @juergen_hubert@thefolklore.cafe
2y
Okay, seriously: What are the actual use cases of beyond, say, random generators for ideas?
11
0
0
0
User avatar
Cher Tailor @Cher@eldritch.cafe
2y
@juergen_hubert One time I used it to take the dots out of a copy-paste of a table of contents. That was decent.
1
0
0
0
User avatar
Jürgen Hubert @juergen_hubert@thefolklore.cafe
2y
@Cher Is that really better than just using regex operations with Notepad++, though?
1
0
0
0
User avatar
Cher Tailor @Cher@eldritch.cafe
2y
@juergen_hubert I don't know what that is! Tell me more. O-o
1
0
0
0
User avatar
Jürgen Hubert @juergen_hubert@thefolklore.cafe
2y
@Cher 1/ I originally misspelled it - it's "regex", not "regez".

"Regex" is a powerful tool originally deriving from UNIX which allows you replace text with other text. And the text
doesn't have to have a very specific combination of letters or symbols - you can also insert all sorts of placeholders, whether it's generic letters, numbers, and so forth. This goes both for the input and the output.

This is extremely useful for anyone who uses a lot of code - which in my case includes LaTeX, which I use for typesetting my books.

en.wikipedia.org/wiki/Regular_expression
1
1
0
0
User avatar
Jürgen Hubert @juergen_hubert@thefolklore.cafe
2y
@Cher 2/ And Notepad++ is the single best "pure text" editing software for windows - and part of the reason is that it allows regex expressions in its "search and replace" function.

Your "taking dots out of a TOC" problem could probably have been solved by a single regex expression.

notepad-plus-plus.org
1
1
0
0
User avatar
Océane @oceane@peculiar.florist
2y
@juergen_hubert @Cher (Just coming ITT to mention that Emacs also has a "search and replace" function. AFAIK it can be installed directly from the WSL, since it can run on pure Wayland.)

(I'm not trying to correct you – this is great advice. But depending on your use case, Emacs also has a regex-based search-and-replace function.)
⭐1
0
0
0
1