This is the full string I'm trying to parse with regular expressions:

```
example.com/newsite.com.html?var=/newsite.com&var=newsite.com

```

I would like to be able to match `newsite.com` part of the string but only if it does not appear after the `?` symbol.

Currently, I've only gotten so far:

```
/newsite.com/g

```

Which selects all the instances of `newsite.com` instead of just the first one.

Link to the regexp playground <http://regexr.com/3fmre>

**EDIT:**

Here `*` represents everything I would like to ignore, essentially matching only the first occurrence of `newsite.com` :

```
example.com/newsite.com.html?****************************

```