[Solved] Find a single word between two parantences in regexpre python [duplicate]
You could try: y = re.findall(r”\(\s*[a-zA-Z]+\s*\)”, x) Where x is the input. Note – You will have to import re by using the statement import re before the program, to use the regex functions Explanation – re.findall is a module that returns an array of the matches found by the regex. The arguments are as … Read more