Rated 5 out of 5 stars
i would like to know if it's poosible to use negative lookbehind in regex (regular expression)?
i have a field named "mp_total_mp" and i want to fill field only if
(string "total" does not have in front string "mp" OR string "total" is not followed by string "mp") OR (string "total" does not have in front string "mp" AND string "total" is not followed by string "mp") .
In other words field can contain string "total" but without string "mp" in front or/and after.
if field name was "total_mp" the solution for regex is simple:
which it works as supposed . but i would like to now if i can do something like this:
i tested this with regex buddy and error was: the java.util.regex does not support infinite repetition inside lookbehind.
Finally i would like to have a regex like this: