Hello community!
I would like some help regarding my solution to the exercise.
pattern = r"(?<!Series\s)((?<!\w)[Cc](?!\w))(?=.+$)"
In the last term I want my pattern to match if every occurrence of . or + is happening at the end of the
string. However my results don’t encapsulate that and I cannot understand why this is the case.
To my understanding (?=.+$)
states the following:
Accept whatever is preceding if the following sub-string is equal to either the characters . or + which if they are found at the end of the string.
Thank you very much in advance.
Giannis