Re: [go-nuts] PCRE to RE2

2019-07-24 Thread Ian Lance Taylor
On Wed, Jul 24, 2019 at 10:11 PM Adam Takahashi wrote: > > I currently have a regex in PCRE that is > > (.|\r|\n)*?(?=FOO) > > It reads in a random number of multiple lines of sentences, and stops when it > sees the word FOO in all caps. I am have problems converting this to a valid > RE2 expres

Re: [go-nuts] PCRE to RE2

2019-07-24 Thread andrey mirtchovski
I'm sorry to say that this list isn't RE2-specific (although one of the main Go contributors wrote RE2). you will probably get very good suggestions on how to convert that to Go's regex, which are RE2-like and I hope you find your answer. A good additional step to do for this particular list is to

[go-nuts] PCRE to RE2

2019-07-24 Thread Adam Takahashi
Hello, I currently have a regex in PCRE that is - (.|\r|\n)*?(?=FOO) It reads in a random number of multiple lines of sentences, and stops when it sees the word FOO in all caps. I am have problems converting this to a valid RE2 expression. Any advice would help. Thanks. -- You received t