Here is an example:

```
<li><a href="link" target="_parent">1. Tips and tricks</a></li>

```

regex:

```
/tips(?![^<]*>)/ig

```

Matches the word Tips. 

What I want to do is to be able to match the surrounding text too, possibly in another group? 

So the match could be `e.g. ["1. Tips and tricks", "Tips"].`

You can test it out [here](http://www.regexr.com/394ie)