I want to convert db columns such as
product_code which consist of
xx_xx to java-style names:
productCode. I wonder if there is a way to improve my following code, using regex or such things.
def getJavaName(column): words = column.split('_') first = words return first + ''.join((w.capitalize() for w in words[1:]))