I'm trying to distinguish regexes (/complex regex here/) from division (/) in a JavaScript file by reading it as a buffer in Node.js and walking through the characters one by one. The reason I'm trying to distinguish regexes (/complex reg
I'm trying to distinguish regexes (/complex regex here/) from division (/) in a JavaScript file by reading it as a buffer in Node.js and walking through the characters one by one. The reason I'm trying to distinguish regexes (/complex reg