I have a text. How I can extract the Name
column with JavaScript and RegExp? I have a code but that doesn't work correctly
const stdout =
`Name Enabled Description
---- ------- -----------
6ytec True
DefaultAccount False Some text.
John True
WDAGUtilityAccount False Some text
Admin False Some text
Guest False Some text`
const regexp = new RegExp("([а-яА-Яa-zA-Z_0-9]+)\\s+(True|False)\\s+");
let result = stdout.match(regexp);
console.log(result);