in reply to Regexp - match if not between [ ]

Something like this (untested):
my @chunks = /[^C\[.]*(?:(?:Cf\.|C(?!f)|\[[^]]*\])[^C\[.]*)*/g;

Replies are listed 'Best First'.
Re^2: Regexp - match if not between [ ]
by Anonymous Monk on May 30, 2011 at 14:28 UTC

    Exactly. Thanx.