I am trying to create a regex wherein IF a certain char set is found, it should not return any match but if that char set is not found then it should return the match found by the rest of the regexp. So far example:
re.search('^(?:(?!>).)+$','>Jack Sparrow/Harry>Potter')
>>> No match found as > present which is what I wanted
re.search('(^(?:(?!>).)+$)(/Harry)','Jack Sparrow/Harry Potter')
>>> No match found but I was expecting it to return true as > is not there while '/Harry' is
What am I doing wrong?