Regular Expression matching implementation for lines, markers, colors.