I’m working on some regex stuff for an import project and I ran into some issues. Just curious, which regex implementation does Discourse use?
When I run this in my Discourse repo:
bundle exec ruby --version
I get Ruby 2.6.5, so I’d refer to the Ruby docs at that version for specifics about their built-in RegEx engine
Thanks! This is what I was looking for.
In case anyone else stumbles upon this thread,
I encourage you to check out:
Reach out to one of them if you’re still stuck
Well the JS code uses JS regexps, and the Ruby code uses Ruby regexps. I’m not sure about things like setting validations, those regexps may have to be written to be valid in both. Luckily it looks like the two languages have mostly consistent regexp flavours.