Q:

RegExp javascript, get words between colons but that are not enclosed by qoutes

Currently this is my regex:
/(:)(.*?)(:)/g

Now I need you not to take the words that are in quotes
This Yes:
:dsadasd:
This No:
":dsadasd:"

A:

You can use the following regex:
/(?!.*")(:)(.*?)(:)/g

It adds a negative look ahead that excludes lines with a double quote.

