vlang / pcre

MIT License
35 stars 6 forks source link

Why does the pcre module use PCRE and not PCRE2? #5

Open srackham opened 1 year ago

srackham commented 1 year ago

I'm curious to know the reason why the newer PCRE2 library is not used (the older PCRE library "is now at end of life, and is no longer being actively maintained").

medvednikov commented 1 year ago

I didn't know, we should switch.

srackham commented 1 year ago

I started on a patch but it quickly turned into a rewrite. See the pcre2 module documentation and the Github repo.

The functions and methods are similar to those in Go's regex package which should should ease porting Go code.

So far only tested on Linux.