Question: I have a String = `'["Id","Lender","Type","Aging","Override"]'`

from which I want to extract Id, Lender, Type and so on in an String array. I am trying to extract it using Regex but, the pattern is not removing the "[".

Can someone please guide me. Thanks! 

Update: code I tried,

```
Pattern pattern = Pattern.compile("\"(.+?)\"");
Matcher matcher = pattern.matcher(str);
List<String> list = new ArrayList<String>();
while (matcher.find()) {
// System.out.println(matcher.group(1));.
list.add(matcher.group(1));

```

(Ps: new to Regex)

Answer: 
I like @epascarello suggestion better, but if you want to use JavaScript, then just add the following line to your existing code:

```
    function appendArrows() {
        var myDiv = document.getElementById('searchResult');
        var list = myDiv.getElementsByTagName('div');

        for (var i = 0; i <= list.length; i++) {

            var _img = document.createElement('img');
            _img.src = "Images/navigation Icon.png";
            _img.id = "arr";
            list[i].appendChild(_img);
            var hzRule = document.createElement('hr');// make a hr
            list[i].appendChild(hzRule);// append the hr

         }

```
Get all the child divs and then add `hr` tag to its html.

1) Get all the child divs like 

`var childDivs = document.querySelectorAll('#searchResult div');`

2) Do a loop and add the `hr` tag to each div.

`for(var i = 0; i < childDivs.length; i++){
 childDivs[i].outerHTML += "<hr/>;
}`