Question: I have a DIV which will contain the content for a website of mine. On the left side there is a menu which has its position set to `float`. When I re-size my browser the container gets under the box and it looks quite bad.

This is how it looks like:
![Bad look](https://i.stack.imgur.com/Lw288.png)

I have tried to put all the relevant HTML and CSS in this fiddle: <http://jsfiddle.net/Dugi/qZ67C/>

How would I make the DIV container have itself getting smaller against the floating menu and not get under it?

Answer: 
The `*` character in a regular expression has a special meaning. To show the Pattern you don't mean for this special meaning, you have to "escape" it. The easiest way to do it is to put your expression through `Pattern.quote()`.

For example:

```
String searchFor = Pattern.quote("***");

```

Then use that string to search
This is not perfect, but it'll get you started: 

```
// 4 lines, 2 of each containing "***" at random locations
String input = "abc***def\nghijkl\n***mnop\n**blah";
// replacing multiline pattern starting with any character 0 or more times, 
// followed by 3 escaped "*"s, 
// followed by any character 0 or more times
System.out.println(input.replaceAll("(?m).*\\*{3}.*", ""));

```

Output: 

```
ghijkl

**blah

```