

I feel you.
I heard the banks where I live are thinking about providing multi-generational loans so people would be able to pay for them.


I feel you.
I heard the banks where I live are thinking about providing multi-generational loans so people would be able to pay for them.
I have mentioned it in the comments below, but to explain it simply, I just wanted to remove all the bracketed text + a dash if there is no other text.
You are right. It is just removal of the bracketed text. The input is multi-line string, so only flag used was the multi-line mode.
These are string lines I have encountered and how I wanted to change them:
1. "[...]" -> ""
2. "-[...]" -> ""
3. "-[...] text" -> "-text"
4. "-text [...]" -> "-text"
5. "[...] text [...]" -> "text"
6. "-[...] text [...]" -> "-text"
The main point is that I needed to remove the dash only if there is no other text on the line.
I have tried the regex you are suggesting at the beginning, but it failed at points (3) and (6).
EDIT: It just occurred to me that the first line of my comment sounds like stupid AI. 🤦
It may feel like it, but I needed to handle all the edge cases. But if you think it can be simplified, I’m willing to learn.
I never understood why are people scared of regular expressions. I love them and they can be quite usefull.
Here is an example of one regex I wrote recently - it is used in replace:
(?:^-\[[^[]+\]$| ?\[.+?\] ?)
There is also an option to use an email provider that offers proper email aliases, like runbox. This way your real email address (login username) may never reach the internet.
I’m still scared every time I have to update something, so I try to avoid updates if possible.
Most of the time when I had to update Windows or some software, something would break (and no previous bug would be fixed) and I would have to spend a whole day trying to fix the stupid issue.
TBH, I don’t even remember if an update ever fixed something for me (but it probably happened at least once).
It would be nice if they could do the update with a single reboot. It is annoying to type LUKS password multiple times.
I though so as well. However, I don’t even see anything similar to disabling (USB) devices like in Windows.
I have the keyboard plugged into a monitor and accessing the USB hub is seriously complicated, so that’s not really an option for me.
But I could try locking the system. I just hope I won’t lock myself out for few hours, because I have pressed Enter multiple times while cleaning it.
It would be nice if there was a button or some app that could temporarily disable the keyboard, so it could be cleaned without accidentally changing settings for a running app, writing your boss you are not coming to work on Monday, firing few nukes, or wiping your whole system.
Don’t worry kids. It will require you to be a slave only for a 30 years.