I am a noob about regular expressions (sorry). I was trying to make a very simple markup language that matches bold and italic and then converts them to HTML. Here is an example for bold that I'm using:
var bold = regexp.MustCompile("\\*([^\\*]+)\\*")
It matches everything between two asterisks. Now, I'd like it to match *test*
but not \*test*
. Since I don't know much about regular expressions but I'm trying to make this experiment, I'd like to know what's the way for that. I searched everywhere but couldn't find the way to make this work.