On Sat, Sep 14, 2019 at 12:40 AM Durga Someswararao G
<durgasomeswararao...@gmail.com> wrote:
>
> I tried to execute one regular expression with regex package. When I try to 
> compile I am getting unsupported Perl syntax. After reading regex syntax 
> conclusion is golang not supporting some combination regex patterns like 
> positive lookahed,negative lookahed etc. Is there any alternative or anyway 
> to handle this in golang.
>
> Regex Syntax: https://github.com/google/re2/wiki/Syntax
> Sample Code: https://play.golang.org/p/SwODqNNJtBN

Not supporting all of Perl's regexp features is an intentional
decision.  See the discussion at
https://swtch.com/~rsc/regexp/regexp1.html.

When I search for "golang pcre" I see several Go packages that support
Perl regular expressions, mostly by calling out to a PCRE library
written in C.

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcWb%3Dm%2BfkKxmg4zhfJmETmsNwc1GTc5PQ8EkOpq%2BoN_k0Q%40mail.gmail.com.

Reply via email to