Stream: beginners

Topic: No regex support?


view this post on Zulip Oliver Weiler (Dec 01 2025 at 07:48):

Hi! Getting my hands dirty on Roc, so far great experience! But I'm wondering: Is there no such thing as a regex module?

view this post on Zulip Oliver Weiler (Dec 01 2025 at 07:49):

My problem: I have a Str which encodes two types of information: I can either extract those using a regex or by splitting on an index. Both don't seem to be that easy with Roc?

view this post on Zulip Luke Boswell (Dec 01 2025 at 07:50):

The more idiomatic approach in Roc would be to parse

view this post on Zulip Luke Boswell (Dec 01 2025 at 07:50):

Something like https://github.com/lukewilliamboswell/roc-parser may be what you are looking for

view this post on Zulip Luke Boswell (Dec 01 2025 at 07:51):

Docs here: https://lukewilliamboswell.github.io/roc-parser/0.10.0/Parser/

view this post on Zulip Oliver Weiler (Dec 01 2025 at 07:51):

Thank you very much! I'll have a look at it!


Last updated: Dec 21 2025 at 12:15 UTC