fork download
  1. import re
  2. reg = r'\bLocalize\("([^"\\]*(?:\\.[^"\\]*)*)'
  3. s = "Localize(\"/Windows/Actions/DeleteActionWarning=The action you are trying to \\\"delete\\\" is referenced in this document.\") + \" Want to Proceed ?\";"
  4. m = re.search(reg, s)
  5. if m:
  6. print(m.group(1))
Success #stdin #stdout 0.02s 27776KB
stdin
Standard input is empty
stdout
/Windows/Actions/DeleteActionWarning=The action you are trying to \"delete\" is referenced in this document.