[go-nuts] regarding regex package

2019-09-14 Thread Doug Clark
There’s a pure Go (no cgo needed) regexp engine that supports lookahead and lookbehind here: https://github.com/dlclark/regexp2 However, and I say this as someone who maintains that regex library, use this type of regex with caution. I would highly recommend changing your code to use the nativ

Re: [go-nuts] regarding regex package

2019-09-14 Thread Ian Lance Taylor
On Sat, Sep 14, 2019 at 12:40 AM Durga Someswararao G 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 > po

[go-nuts] regarding regex package

2019-09-14 Thread Durga Someswararao G
Hi, 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