K
Kryten
Hi,
I'd be grateful for assistance with a regular expression problem I
have.
My texttakes the format of:-
aaabbbcccorangesbananashhhjjjapples
qqqqyy333366sssssorangesbananasuuu555449
What I want is to match bananas but only when immediately preceded by
oranges.
So ggggggggeeeeeeeorangestbananasrrrrr would not match. Neither would
ffffiiiiiiiiiiiqa2332332orangebananasjjj33yyttti
is this positive lookbehind? Or am I getting my regex terms mixed up?
Thanks
Stuart
I'd be grateful for assistance with a regular expression problem I
have.
My texttakes the format of:-
aaabbbcccorangesbananashhhjjjapples
qqqqyy333366sssssorangesbananasuuu555449
What I want is to match bananas but only when immediately preceded by
oranges.
So ggggggggeeeeeeeorangestbananasrrrrr would not match. Neither would
ffffiiiiiiiiiiiqa2332332orangebananasjjj33yyttti
is this positive lookbehind? Or am I getting my regex terms mixed up?
Thanks
Stuart