python brackets in string code example
Example 1: print curly bracket python
use '{{' and '}}'
Example 2: get string in brackets python
s = "alpha.Customer[cus_Y4o9qMEZAugtnW] ..."
m = re.search(r"\[([A-Za-z0-9_]+)\]", s)
print m.group(1)
> cus_Y4o9qMEZAugtnW