Hi,
I want to use a negative lookahead regular expression. In this case, find the last occurence of an open round bracket.
regex = "\((?!.*\()"
search = "print (\"Current line range: \" + str(current_line(..."
result = search.find(regex)
print result
The result is always -1, so my regualar expression seems to be wrong. How do I define it correctly?