in reply to regex search

With "compliment" you probably mean searching for $A at the beginning of $B- which essentially fails since $A is longer than $B!

Replies are listed 'Best First'.
Re^2: regex search
by zuma53 (Beadle) on Jun 19, 2012 at 15:36 UTC
    The compliment (that I am looking for) would be that $B is a prefix of $A.

    J

      But your first regex is checking that.

        Yes, but how can I do it the other way around is the question?