google / starlark-go

Starlark in Go: the Starlark configuration language, implemented in Go
BSD 3-Clause "New" or "Revised" License
2.26k stars 204 forks source link

Feature Request: Official Lib for `re`/`regex` #500

Open jawilking opened 10 months ago

jawilking commented 10 months ago

Refer: https://github.com/google/starlark-go/issues/241

I checked re implement of https://github.com/qri-io/starlib/tree/master/re which is a tough draft.

Regex is very common and useful. Any ideas to support it as official lib?

magnetde commented 7 months ago

Maybe this will help you if you need another regex module for Starlark: https://github.com/magnetde/starlark-re

I created this Starlark module with the primary goal of having a regex module almost completely compatible with the Python "re" module.