Example barcodes for sample regex in query builder

This is not a complete form of the sample regex calculator, but it's the
backend work
TODO - Mess around with javascript in the JSP files to make it work for
the user