turi is a user on octodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
turi @turi

Start point: I want to learn RegEx
Not a real problem: No example text to try regexes on.
Easy solution: Making the text file myself by randomly throwing chars into a txt file.
Real problem: getting greedy and trying to put 10^9 (1 GB) of chars into the txt file.
The program runs since an hour and i am not sure if should kill it or wait if the program terminates at some point.
:D

· Web · 0 · 1

@turi if it's backtracking a lot, might take several years to finish. there was a website that teaches regex in a very intuitive manner but I forget the URL

Logically i should terminated it and rewrite it in a way that it will work.
But im curios if its going to work or not.
It did what it should do with 10^6 and 10^7 chars. But by now i think having all 10^9 chars in one list before saving it maybe way to much to handle for my pc and or python.

Stopped it and did a rewrite. By dumping the string every 10^6 chars the program run like a charm. A very slow charm :wink: