Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
regexp: Replace out of range when submatch string is empty #3816
go version go1.0.2 issue code: http://play.golang.org/p/0M5pVAfkY_ It ought to return a empty string if submatch nothing. But code will panic with "slice bounds out of range". Please fix. golang-nut mail thread: https://groups.google.com/forum/?fromgroups#!topic/golang-nuts/gB5n7GYhNTU