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

         }

```
Try using the JQuery library, more specifically its `append()` function:

```
$("a").click(function(){
   $( "#searchResult" ).append( "<hr />" );
}); 

```

I used `a` as the selector in the example but you can feel free to change it. By clicking the link (or `a`) it will append the `<hr />` into the search result ID.

To read more about the `append()` function (or the library in general) look at the documentation [here](http://api.jquery.com/append/).