pos_look_behind

pos_look_behind(string, A, B)

Positive look behind will succeed if passed non-consuming expression does 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:

pos_look_behind("i love nlp.everyone likes nlp","love","nlp")
# the word "nlp" that do come after "love"
    >>> position:(7, 10) Matched word: nlp