You mentioned regex and there used to be an awesome web engine to basically boil samples down to regex search patterns but now it's a non working creepy SEO page or something
http://txt2re.com/I'd love for it to be back online but can't find the author.
now I just use chatgpt