[Cialug] Regex Question

Todd Walton tdwalton at gmail.com
Mon Jul 25 15:14:54 UTC 2022


Let's say I have a block of text like this:

===================================
            {
                "altGrAliasing": true,
                "antialiasingMode": "grayscale",
                "closeOnExit": "graceful",
                "colorScheme": "Campbell",
                "commandline":
"C:\\Users\\seven\\AppData\\Roaming\\Scoop\\apps\\msys2\\current\\msys2_shell.cmd
-defterm -here -no-start -msys",
                "cursorShape": "bar",
            },
===================================

How do I write a regex to match all lines *except* the "commandline" line?

--
Todd


More information about the Cialug mailing list