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
Post a Comment