perl regex: negative lookahead between two characters -


how include pattern between 2 characters in regular expression?

say wanted print in below text apart words in between " "

this "example".  "is" "an" example.  "this" example. 

this i've tried far, think i'm missing something:

m/(?!"(.*)").*/g 

$s = 'this "is" "an" example'; @words = ($s =~ /"([^"]*)"/g); 

@words contains words between " "


Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -