Question: i have following issues in c# code.

```
class Program
    {
        static void Main(string[] args)
        {
         string line="have a nice day with nice(songs)";
         string pattern=@"\bnice\b";
       string replaced_line=Regex.Replace(line, pattern, "Good", RegexOptions.IgnoreCase); 
}
}

```

output-: have a Good day with nice(songs) 

The above output is fine. but the below code is not replacing

```
class Program
    {
        static void Main(string[] args)
        {
         string line="have a nice day with nice(songs)";
         string to_replace="nice";
       string replaced_line=Regex.Replace(line, @"\b"+to_replace+"\b", "Good", RegexOptions.IgnoreCase); 
}
}

```

output-: have a nice day with nice(songs)

it is not replacing

Can anyone please help me.

Answer: 
Can't verify since I'm on a mobile but have you tried....

```
<table>
    <colgroup>
        <col class="first" />
        <col />
        <col class="last" />
    </colgroup>
    <tbody>
        <tr>
            <td></td>
            <td></td>
            <td></td>
        </tr>
    </tbody>
</table>

```

Then use the `col.first` and `col.last` classes to style them with css. 

W3C: <http://www.w3.org/TR/html-markup/col.html>

Oh, and, remove all the css from your html. Having css inline will make the document completely unmaintainable through css files. And remove the IDs also from td:s and always use " to quote html attribute values.

You can also try to add:

```
table {
    table-layout: fixed;
}

```

To prevent the browser from calculating the initial width of each cell according to their contents and give them all initially an equal width. (height will still expand according to content.) Then override certain columns with css.
try this css

```
table{
width:100%;
}

```

it works.