Python Get String Between Substrings In Javascript Alert