http://www.perlmonks.org?node_id=1018383


in reply to Re^2: Having a problem with negative look behind assertion
in thread Having a problem with negative look behind assertion

If you mean to say your fourth answer is correct I beg to differ. !/fee/ aborts for "fee" anywhere in the string instead of only at the start like the OP wanted

UPDATE:

If you mean to say your third answer is correct I beg to differ. It expects a '/' after "fee". While this is always the case in the examples it is not what the OP said (although there is a chance that the OP misstated the problem)

Replies are listed 'Best First'.
Re^4: Having a problem with negative look behind assertion
by Anonymous Monk on Feb 12, 2013 at 14:51 UTC

    Gee, you say ^ is critical, is there an answer with ^, I wonder