package main
import (
"regexp"
"fmt"
)
func main() {
var re = regexp.MustCompile(`\[([\w\s*:/\-\.]*)\]\(([^()]+)\)`)
var str = `
Let's see for example the [Diaspora*
project](https://diasporafoundation.org/), a decentralized social network. The
project is an alternative to Facebook and Twitter by promising Liberty,
Privacy and Decentralization. This last word is the key problem. This kind of
project finds its interests by multiplying what is called "pods" (servers with
the software installed). However, in this case the installation process is
very complicated, so even those who are comfortable with computers are not
inclined to make the effort to install their own pod. See for example the
[installation process for Ubuntu
Trusty](https://wiki.diasporafoundation.org/Installation/Ubuntu/Trusty). The
project offers a Vagrant installation too, but the documentation only admits
that you know what you do, that you are a developer. If it is difficult to

_A pretty decentralized network (Source: <https://diasporafoundation.org/>)_
Diaspora* is not the only project facing this problem. We can add
[MediaGoblin](http://www.mediagoblin.org/pages/tour.html) to the list, an
alternative to YouTube allowing you to host media (and [here it's deployment
`
for i, match := range re.FindAllString(str, -1) {
fmt.Println(match, "found at index", i)
}
}
Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for Golang, please visit: https://golang.org/pkg/regexp/