{"ScriptPreparationCode":"var testString = \u0027{ \u0022type\u0022: \u0022Feature\u0022, \u0022properties\u0022: { \u0022OBJECTID\u0022: 1, \u0022OBJECTID_12\u0022: 1, \u0022ELEV_IN_FT\u0022: 5397, \u0022DATE_CREATED\u0022: \u0022318816000000\u0022, \u0022DATE_EDITED\u0022: \u0022\u0022, \u0022name\u0022: \u0022Agua Sal Creek\u0022, \u0022type\u0022: \u0022Stream\u0022, \u0022source\u0022: \u0022USGS_PlaceNamesUSA\u0022, \u0022description\u0022: \u0022\u0022, \u0022state\u0022: \u0022Arizona\u0022, \u0022class\u0022: \u0022Place Name\u0022, \u0022map_layer\u0022: \u0022Place Name\u0022, \u0022state_ab\u0022: \u0022AZ\u0022, \u0022lat\u0022: 36.461112200202791, \u0022long\u0022: -109.47843940044683, \u0022gmu_id\u0022: \u0022\u0022, \u0022hasname\u0022: \u0022\u0022 }, \u0022geometry\u0022: { \u0022type\u0022: \u0022Point\u0022, \u0022coordinates\u0022: [ -109.478439400446817, 36.461112200202805, 0.0 ] } },\\n{ \u0022type\u0022: \u0022Feature\u0022, \u0022properties\u0022: { \u0022OBJECTID\u0022: 1, \u0022OBJECTID_12\u0022: 1, \u0022ELEV_IN_FT\u0022: 5397, \u0022DATE_CREATED\u0022: \u0022318816000000\u0022, \u0022DATE_EDITED\u0022: \u0022\u0022, \u0022name\u0022: \u0022Agua Sal Creek\u0022, \u0022type\u0022: \u0022Stream\u0022, \u0022source\u0022: \u0022USGS_PlaceNamesUSA\u0022, \u0022description\u0022: \u0022\u0022, \u0022state\u0022: \u0022Arizona\u0022, \u0022class\u0022: \u0022Place Name\u0022, \u0022map_layer\u0022: \u0022Place Name\u0022, \u0022state_ab\u0022: \u0022AZ\u0022, \u0022lat\u0022: 36.461112200202791, \u0022long\u0022: -109.47843940044683, \u0022gmu_id\u0022: \u0022\u0022, \u0022hasname\u0022: \u0022\u0022 }, \u0022geometry\u0022: { \u0022type\u0022: \u0022Point\u0022, \u0022coordinates\u0022: [ -109.478439400446817, 36.461112200202805, 0.0 ] } },\\n{ \u0022type\u0022: \u0022Feature\u0022, \u0022properties\u0022: { \u0022OBJECTID\u0022: 1, \u0022OBJECTID_12\u0022: 1, \u0022ELEV_IN_FT\u0022: 5397, \u0022DATE_CREATED\u0022: \u0022318816000000\u0022, \u0022DATE_EDITED\u0022: \u0022\u0022, \u0022name\u0022: \u0022Agua Sal Creek\u0022, \u0022type\u0022: \u0022Stream\u0022, \u0022source\u0022: \u0022USGS_PlaceNamesUSA\u0022, \u0022description\u0022: \u0022\u0022, \u0022state\u0022: \u0022Arizona\u0022, \u0022class\u0022: \u0022Place Name\u0022, \u0022map_layer\u0022: \u0022Place Name\u0022, \u0022state_ab\u0022: \u0022AZ\u0022, \u0022lat\u0022: 36.461112200202791, \u0022long\u0022: -109.47843940044683, \u0022gmu_id\u0022: \u0022\u0022, \u0022hasname\u0022: \u0022\u0022 }, \u0022geometry\u0022: { \u0022type\u0022: \u0022Point\u0022, \u0022coordinates\u0022: [ -109.478439400446817, 36.461112200202805, 0.0 ] } },\\n{ \u0022type\u0022: \u0022Feature\u0022, \u0022properties\u0022: { \u0022OBJECTID\u0022: 1, \u0022OBJECTID_12\u0022: 1, \u0022ELEV_IN_FT\u0022: 5397, \u0022DATE_CREATED\u0022: \u0022318816000000\u0022, \u0022DATE_EDITED\u0022: \u0022\u0022, \u0022name\u0022: \u0022Agua Sal Creek\u0022, \u0022type\u0022: \u0022Stream\u0022, \u0022source\u0022: \u0022USGS_PlaceNamesUSA\u0022, \u0022description\u0022: \u0022\u0022, \u0022state\u0022: \u0022Arizona\u0022, \u0022class\u0022: \u0022Place Name\u0022, \u0022map_layer\u0022: \u0022Place Name\u0022, \u0022state_ab\u0022: \u0022AZ\u0022, \u0022lat\u0022: 36.461112200202791, \u0022long\u0022: -109.47843940044683, \u0022gmu_id\u0022: \u0022\u0022, \u0022hasname\u0022: \u0022\u0022 }, \u0022geometry\u0022: { \u0022type\u0022: \u0022Point\u0022, \u0022coordinates\u0022: [ -109.478439400446817, 36.461112200202805, 0.0 ] } },\\n\u0027","TestCases":[{"Name":"Splitting","Code":"var values = testString.split(\u0022\\n\u0022);\r\nvar output = \u0027\u0027\r\nfor (let v of values) {\r\n if (v[v.length-1] === \u0027,\u0027) output \u002B= v.substring(0, v.length-1)\u002B\u0027\\n\u0027\r\n}","IsDeferred":false},{"Name":"Regex","Code":"var output = testString.replace(\u0027,\\n\u0027, \u0027\\n\u0027)\r\n","IsDeferred":false}]}