How can I remove parenthesis from the of string in python?

I have a string, for example, s = "Alex Knight (-6.5)" and I want to get "Alex Knight", how can I achieve this ? Can you suggest suitable regular expression to remove the end parenthesis or an alternate solution. Thank you.

Source: regex

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.