2017  Kodetalk | Feedback | Privacy Policy | Terms | About
userimage

selecting numbers not in quotes

hi i have problem selecting the numbers that is not in the single/double qoutes.

for example:
<style color="#567659">
456
<style color="#565656"></style>
678

i want to select just the 456 and 678 , nothing else
how should i do this with regular expression in javascript

userimage

Try this,

/([0-9]+[^ ^"])/w+/g


And also you can able to test online too from the below given URL.


http://regexr.com/

Answer is