I am trying to get a regex to capture some data with a negative lookbehind, so it wonβt match if a certain string surpasses it. I know that there are two main formats, but they do not work. I do this in a search application and cannot use java to increase, so the solution should be pure with a regular expression .
This format gives me the error message "Regular expression syntax expression: invalid quantifier"
(?<!Product) Type : (.*?)<
This format acts like a normal lookbehind and is fixed only when Type precedes Product:
(?!=Product) Type : (.*?)<
What am I doing wrong?
source share