Python Learning

Saturday, 19 February 2022

return text between parenthesis

st[st.find("(")+1:st.rfind(")")]

from: https://stackoverflow.com/questions/4894069/regular-expression-to-return-text-between-parenthesis

Posted by Ryoko at 03:21
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

Ryoko
View my complete profile

Blog Archive

  • ▼  2022 (25)
    • ►  December (1)
    • ►  November (1)
    • ►  September (7)
    • ►  July (1)
    • ►  June (1)
    • ►  April (2)
    • ►  March (3)
    • ▼  February (7)
      • How to get all dates (month, day and year) between...
      • Locust - Running tests in a debugger in pycharm
      • SSL error CERTIFICATE_VERIFY_FAILED with Locust wh...
      • How can I use pickle to save a dict?
      • How to delete the contents of a folder?
      • Check If a File Exists
      • return text between parenthesis
    • ►  January (2)
  • ►  2021 (35)
    • ►  November (2)
    • ►  October (3)
    • ►  September (4)
    • ►  August (2)
    • ►  July (2)
    • ►  June (3)
    • ►  May (8)
    • ►  April (1)
    • ►  March (5)
    • ►  February (3)
    • ►  January (2)
  • ►  2020 (106)
    • ►  December (9)
    • ►  November (1)
    • ►  October (3)
    • ►  September (5)
    • ►  August (6)
    • ►  July (9)
    • ►  June (2)
    • ►  May (6)
    • ►  April (27)
    • ►  March (4)
    • ►  February (25)
    • ►  January (9)
Simple theme. Powered by Blogger.