google / starlark-go

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

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

Open jawilking opened 1 year ago

jawilking commented 1 year 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 11 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.