Python regular extraction of parentheses and the contents of parentheses

for example, a string: "American (United States of)"
to extract:"(United States of)"
or "Abcde (Df WD asdAS ASDW)"
to extract:"(Df WD asdAS ASDW)"
to use regular expressions
Thank you guys


import re
In [26]: re.findall(r'.*(\(.*\)).*', 'American(United States of)')
Out[26]: ['(United States of)']

In [31]: m = re.match(r'.*(\(.*\)).*', 'American(United States of)')

In [32]: if m:
    ...:     print(m.groups())
    ...:     
('(United States of)',)

import re

s = 'American(United States of)'

r = re.search('(\(.*?\))', s)
if r:
    print(r.group())
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be2a45-30d8f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be2a45-30d8f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?