Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
selckin
· 10y ago · 0 comments
Is this the sort of thing that
https://github.com/google/re2
was made to solve?
Comments
[–]
chubot
10y ago
Yes, see my other post in this thread... Russ Cox is the author of RE2 and one of the articles I linked goes into its implementation.
[–]
nikias
10y ago
Also implemented in the go stdlib
https://golang.org/pkg/regexp
[–]
burntsushi
10y ago
And Rust!
https://github.com/rust-lang-nursery/regex
[–]
infogulch
10y ago
And it doesn't have any problems with this particular regex:
https://play.golang.org/p/7UFkG3qrpS
[–]
cyphar
10y ago
It's been mathematically proven that engines of the form that Go has will always run in linear time for any regular expression, on any input. It's one of the more famous things about regex in general.
[–]
artursapek
10y ago
Yeah, the go team seems to be (rightfully) proud of their regexp implementation.