You are reading a single comment by @barbiani and its replies. Click here to read the full conversation.
  • Hello everybody,

    I am trying to match the second string between quotes and while it works fine on node.js it fails on espruino v1.99.

    With the resources available on espruino, how else would you do it?

    espruino 1.99:
    >/\w+\.\w+/g.exec("form-data; name=\"file\"; filename=\"file.txt\"")[0]
    ="me=\"file.txt"
    
    node.js:
    /\w+\.\w+/g.exec("form-data; name=\"file\"; filename=\"file.txt\"")[0]
    => 'file.txt'
    

    v2.01 is broken too.

    Thank you.

About

Avatar for barbiani @barbiani started