I want to extract specific substrings from a formatted string. For example, the raw string is 19592@click(className='android.widget.TextView',instance='15'):android.widget.TextView@"All"
.
I'd like to extract "click"
, "android.widget.TextView"
, "15"
, "android.widget.TextView@"All""
from the string above. Is this a problem that can be solved by python regex? I'm not sure which APIs I should use.