You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Ok, in that case I'd suggest:

    /filename="([^"]+)"/g.exec("form-data; name=\"file\"; filename=\"file.txt\"")[1]

    Which matches filename="..." and returns what's inside the quotes

About

Avatar for Gordon @Gordon started