Note that you can train and test regexes on pages like regex101.com, or locally (visual-regexp). Perhaps with incomplete coverage of the rules, txt2regex can help you to construct regexes for use in awk, emacs, python, vim by answering a few questions. The last two possibly already are packaged for your instance of Linux (repology’s query about visual-regexp, and txt2regex).
Source:
over 1 year ago