You are viewing a single comment's thread. Return to all comments →
Regex_Pattern = r"(.)(?!\1)" # Do not delete 'r'.
import re
Test_String = input()
match = re.findall(Regex_Pattern, Test_String)
print("Number of
Seems like cookies are disabled on this browser, please enable them to open this website
Negative Lookahead
You are viewing a single comment's thread. Return to all comments →
Regex_Pattern = r"(.)(?!\1)" # Do not delete 'r'.
import re
Test_String = input()
match = re.findall(Regex_Pattern, Test_String)
print("Number of