I have a string like
text= '{username} joined {servername} {{anytext}} '
and a simple regex code
print(re.findall('{([^{}]*)}', text))
#output
['username', 'servername', 'anytext']
Where anytext is inside double braces but it is also validating by the regex. I mean, the regex should only find word in single braces and ignore double braces.
Please help me to do this happen.