Regex lib for both wasm and rust

I need to write one source code to run in wasm and in rust. I was thinking of writing it in rust and compile it to wasm but regex has some nuances like the engine it uses and syntax. Which lead me to here... I need a rust regex lib that can work exactly the same in both, any suggestions?
Do I need to apply this at some moment down the line?

Why can't you use regex? It should be wasm compatible. It's how regex101.com supports Rust regex for example.

5 Likes

I can, I just didn't want to pick one and start testing until I find a good contestant. Thank you for answering me, I'll use regex as you suggested and if it cause me problems down the line I'm gonna cast the curse o Ra on you. Appreciated