Question: Here is my code to insert table rows dynamically. It's not working with ie7. But working with ie8, ie9 ,Chrome, Firefox.

```
for (var lvl=0;lvl<13;lvl++) {
  $("#check-form tbody").append( "<tr />");                 
  for (var fchr=6;fchr<=36;fchr+=3) {
    if (fchr==6)
      $("#check-form tbody").append( "<th scope=\"row\">"+hpa[lvl]+" MB</th>");                 
    $("#check-form tbody").append("<td><input type=\"checkbox\" value="+('0'+fchr).slice(-2)+"_"+hpa[lvl]+" id="+('0'+fchr).slice(-2)+"_"+hpa[lvl]+" class=\"chkChart\"></input></td>");
  }
}

```

What am I doing incorrectly?

Answer: 
It's not quite there, it prints a leading newline for some reason, but maybe something like this? 

```
$ sed -n '/<td class="time">/,/<\/td>/{s/^<td class="time">$//;/^<\/td>$/d;p}' file 

13.05.2013  17:51

```

Inspired by <https://stackoverflow.com/a/13023643/1076493>

**Edit:** Well, there's always perl!  

For more info see <https://stackoverflow.com/a/1213996/1076493>

```
$ perl -0777 -ne 'print "$1\n" while /<td class="time">\n  (.*?)\n<\/td>/gs' regex.txt 
13.05.2013  17:51

```
Try:

```
awk '/^td class="time">/{gsub(ORS,x); print $2}' RS=\< FS=\> file

```

or

```
awk '/^td class="time">/{print $2}' ORS= RS=\< FS='>[[:space:]]*' file

```