regexp_like(string, pattern)


Advertisements

Query 1

presto:default> SELECT regexp_like('1a 2b 3c 6f', '\d+c') as expression; 

Result

 expression 
------------ 
   true

Here, the digit 3 has character c, hence the result is true.

Query 2

presto:default> SELECT regexp_like('1a 2b 3c 6f', '\d+e') as expression; 

Result

 expression 
------------ 
   false 

Here, the character e is not in the regular expression.

apache_presto_sql_functions.htm

Useful Video Courses


Video

Apache Spark Online Training

46 Lectures 3.5 hours

Arnab Chakraborty

Video

Apache Spark with Scala - Hands On with Big Data

23 Lectures 1.5 hours

Mukund Kumar Mishra

Video

Learn Apache Cordova using Visual Studio 2015 & Command line

16 Lectures 1 hours

Nilay Mehta

Video

Delta Lake with Apache Spark using Scala

52 Lectures 1.5 hours

Bigdata Engineer

Video

Apache Zeppelin - Big Data Visualization Tool

14 Lectures 1 hours

Bigdata Engineer

Video

Olympic Games Analytics Project in Apache Spark for Beginner

23 Lectures 1 hours

Bigdata Engineer

Advertisements