pos_look_ahead
pos_look_ahead(string, A, B)
Positive look ahead 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_ahead("I love kaggle. I love DL","love","DL")
>>> position:(17, 21) Matched word:love