Hello,

Consider the string:

$s = '[[2003]] abc [[2008]] "def"';


I want to extract 2008 and def, so using


\[\[([\w\W^\]]+?)\]\]\s"(.+?)"

The regex match all string, even thought I have added to exclude: ^\]
inside the character class.

Any idea?

Thanks.


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to