Skip to content

Tag: node.js

Javascript – How to extract text with regex

I am new to Regexes. Now I need to write one to suit my needs. I have this string: 1 [00:00:12.00 – 00:01:20.00] Hello there – I’ve come to help you. I would somehow need to bring it to this form: I have tried with this approach: But I am getting this error: Invalid regular expression: /$[^$…

Get exact reuest header in node http

Is there a way to see/inspect the complete request header send by the native node http module? I’m doing sth. like that: and I’ like to see if there are any cookies send with this request. Answer I think Node’s documentation will tell you of any headers it will add. Reviewing it, it looks li…