cjslack / grok-debugger

MIT License
127 stars 30 forks source link

support for RE2 ? #1

Open buixor opened 3 years ago

buixor commented 3 years ago

Hello,

Cool project ! Any chance you plan to support alternative regexp libraries such as RE2 ? I'm working on crowdsec, and this would be very helpful to users, but PCRE and RE2 are not fully compatible and thus patterns might have to differ :)

buixor commented 3 years ago

hey @cjslack , any idea if this is in your roadmap ? :)

cjslack commented 3 years ago

My package grok-js-web was forked from node-grok and modified to be WASM compatible by leveraging onigasm. I suppose node-grok could also be modified to use re2-wasm. However, right now it is not on my roadmap. Feel free to give it a shot yourself. If my tool gets more traction, this may be something I can add support for down the line.