You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Looks like there's a bug in how the index of the match is calculated - however if you make it a group then you can extract that group and you're sorted.

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

Avatar for Gordon @Gordon started