[SPARK-2395][SQL] Optimize common LIKE patterns.

Yeah, those regexes are just finding common LIKE patterns that we can execute more efficiently.  LIKE 'a%a' for example would not match any of the cases and would be left as a LIKE.