I'm looking to exclude all the words "value" and "id" then match if there is an md5 file, I have the following regex that matches all the MD5 but is not excluding the words I mentioned, example
(?!(value|id)(\":\s\"|':\su'))\b[a-fA-F\d]{32}
I was trying to use a negative lookbehind but python is not accepting it, using Java works perfectly but python is giving me the error "A lookbehind assertion has to be fixed width"
(?<!(value|id)(\":\s\"|':\su'))\b[a-fA-F\d]{32}
I tried with the following regex and works in python but just let me exclude one word ("value" in this example) but is giving me the characters before the md5 and I just want to match the md5, example
((?<!value)\":\s\"|':\su')\b[a-fA-F\d]{32}
Can someone explain me how would be the equivalent in python?