Java tutorial
//package com.java2s; public class Main { public static boolean hasTableName(String columnSelection) { return columnSelection.matches("\\w+\\.\\w+"); } }