Question: Why doesn't this work in Python

```
x=re.match('/^([a-z]){3}$/','ssw')

```

I am trying to check strings with length 3 and only small letters. Am I missing anything? Please suggest.

Answer: 
I think you are looking for this.

```css
.hex {
  position: relative;
  margin: 1em auto;
  width: 10em;
  height: 17.32em;
  border-radius: 1em/.5em;
  background: orange;
  transition: opacity .5s;
}

.hex:before,
.hex:after {
  position: absolute;
  width: inherit;
  height: inherit;
  border-radius: inherit;
  background: inherit;
  content: '';
}

.hex:before {
  -webkit-transform: rotate(60deg);
  transform: rotate(60deg);
}

.hex:after {
  -webkit-transform: rotate(-60deg);
  transform: rotate(-60deg);
}
```

```html
<div class="hex"></div>
```
With your current code, using the triangle top and bottom, you can modify them slightly to give it a curved look. Add a width of `4px` to `#hexagon-circle:before` and `#hexagon-circle:after` and reduce `border-left` and `border-right` by `2px` each.

[Js Fiddle here](http://jsfiddle.net/yR7zt/1/)

```
#hexagon-circle { 
  width: 100px; 
  height: 55px; 
  background: red; 
  position: relative;
  border-radius: 10px;
}

#hexagon-circle:before { 
  content: ""; 
  position: absolute; 
  top: -25px; 
  left: 0; 
  width: 4px; 
  height: 0; 
  border-left: 48px solid transparent; 
  border-right: 48px solid transparent; 
  border-bottom: 29px solid red;
  border-radius: 10px;
}

#hexagon-circle:after { 
  content: ""; 
  position: absolute; 
  bottom: -25px; 
  left: 0; 
  width: 4px; 
  height: 0; 
  border-left: 48px solid transparent; 
  border-right: 48px solid transparent; 
  border-top: 29px solid red;
  border-radius: 10px;
}

```

It's not a true curve as it creates a straight line, however it gives the impression it might be curved when viewed in the context of the shape.