Is there any way to add a regex exception to a regular expression?

Example:

```
(regular expression/regular expression to ignore)

```

I have the following regular expression:

```
\W

```

But would like for it to ignore strings inside quotation marks (Regex i will use for this is: `"(.*?)"`). But i don't know how to add an exception to the `\W` regex.

I want something like this:

```
\W(ignore->"(.*?)")

```

Any ideas? Any help will be appreciated.