Question: I have written this regex but this is not working as expected.

```
((?:[A-Z][\w]+)?),[\s]([A-Z]{2})

```

Following are sample inputs. 

```
Fort Worth, TX
This is Forth Worth, TX
We are looking for someone from Columbus, MS.

```

I expect City and State out of above string samples with regex in python but this is just no working as expected.

```
print re.findall('((?:[A-Z][\w]+){1,2}),[\s]([A-Z]{2})', input)

```

What am I missing?

Answer: 
You have two things wrong with your code. First of all you need to lay it out like so

```
.menu li a:active strong{color:#00f !important;}

```

Secondly you need to use `a` CSS in the correct order. You have them the wrong way around currently. This is the correct way:

DEMO <http://jsfiddle.net/kevinPHPkevin/XfsvV/>

```
.menu > li a:hover strong {color:#fff !important;}
.menu li a:active strong{color:#00f !important;}

```

The order should follow this context:

```
a:link
a:visited
a:hover
a:active

```
It should be `.menu li a:active strong` and `.menu > li a:hover strong`