perl -e '$pre="x+"; $_="xxFindme"; print "found" if(/(?<=$pre)Findme/)' # dies with the message: Variable length lookbehind not implemented in regex; marked by <-- HERE in m/(?<=x+)Findme <-- HERE / at -e line 1.