If your problem is really just this simple, you don’t need regex:
s[s.find("(")+1:s.find(")")]
More Related Contents:
- Searching for IP addresses in a file
- Finding the longest substring of consecutive letters in python
- How to use a variable inside a regular expression?
- How to match any string from a list of strings in regular expressions in python?
- Regex matching between two strings?
- Python regex for unicode capitalized words
- Regular expression parsing a binary file?
- FutureWarning: The default value of regex will change from True to False in a future version
- match dates using python regular expressions
- Issue with regex backreference in Python
- Python TypeError on regex [duplicate]
- Regular expression doesn't produce expected result
- What do ellipsis […] mean in a list?
- Windows Scipy Install: No Lapack/Blas Resources Found
- How do I unescape HTML entities in a string in Python 3.1? [duplicate]
- Generate a random letter in Python
- Install opencv for Python 3.3
- Seeking from end of file throwing unsupported exception
- building Python from source with zlib support
- Python 3.1.1 string to hex
- EOFError: EOF when reading a line
- pandas or python equivalent of tidyr complete
- How do I run python 2 and 3 in windows 7? [duplicate]
- Is Python’s order of evaluation of function arguments and operands deterministic (+ where is it documented)?
- How to make a command case insensitive in discord.py
- Appending to list in Python dictionary [duplicate]
- re.search() only matches the first occurrence
- pyvenv-3.4 returned non-zero exit status 1
- Python’s “open()” throws different errors for “file not found” – how to handle both exceptions?
- What is the difference between super() with arguments and without arguments?