JSFiddle - React, Tailwind, and code Playground

by Rajshekar Reddy

TypeScript

var data = `subtests: []`;
var regex = new RegExp('^subtests: .*');
var test = regex.exec(data);
alert("Op: "+test); 
//expecting it to be "Op: subtests: []"
//but actual "Op: subtests: [],[]"