Hi Gurus,
I was wondering if it is possible to insert { } to equalize the format, NOT using auxiliaries variables ( file is huge), but using just one line command (regex ?? ).
Of course it must adjust only eligible cases with no { }.
Desired Output:
thks
I was wondering if it is possible to insert { } to equalize the format, NOT using auxiliaries variables ( file is huge), but using just one line command (regex ?? ).
Of course it must adjust only eligible cases with no { }.
Code:
clear input str67 var1 `"{ "Department": "Corporate Systems", "Project": "Project Alpha"} "' `""Department": "HR", "Project": "Project Beta""' end +---------------------------------------------------------------------+ | var1 | |---------------------------------------------------------------------| 1. | { "Department": "Corporate Systems", "Project": "Project Alpha"} | 2. | "Department": "HR", "Project": "Project Beta" | +---------------------------------------------------------------------+
Code:
+---------------------------------------------------------------------+ | var1 | |---------------------------------------------------------------------| 1. | { "Department": "Corporate Systems", "Project": "Project Alpha"} | 2. | { "Department": "HR", "Project": "Project Beta"} | +---------------------------------------------------------------------+
Comment