Fixed regexp for note builder - closes #1