Python Regex Get String Between Two Substrings
问题 First off, I know this may seem like a duplicate question, however, I could find no working solution to my problem. I have string that looks like the following: string = "api('randomkey123xyz987', 'key', 'text')" I need to extract randomkey123xyz987 which will always be between api(' and ', I was planning on using Regex for this, however, I seem to be having some trouble. This is the only progress that I have made: import re string = "api('randomkey123xyz987', 'key', 'text')" match = re