neg_look_behind
neg_look_behind(string, A, B)
Positive look behind will succeed if passed non-consuming expression does not match against the forthcoming input. The syntax is "A(?<!=B)" where "A"is actual expression and "B" is non-consuming expression.
Parameters
string: str Text selected to apply transformation.
A, B: str A is actual expression and B is non-consuming expression.
Examples:
neg_look_behind("i love nlp.everyone likes nlp","love","nlp")
# the word "nlp" that doesnt come after "love"
>>> position:(26, 29) Matched word: nlp