diff --git a/velox/docs/functions/spark/regexp.rst b/velox/docs/functions/spark/regexp.rst index f0ef53cbf56c..57e168fc9d74 100644 --- a/velox/docs/functions/spark/regexp.rst +++ b/velox/docs/functions/spark/regexp.rst @@ -6,9 +6,9 @@ Regular expression functions use RE2 as the regex engine. RE2 is fast, but supports only a subset of PCRE syntax and in particular does not support backtracking and associated features (e.g. back references). Java and RE2 regex output can diverage and users should be cautious that -the patterns they are using perform similarlly between RE2 and Java. +the patterns they are using perform similarly between RE2 and Java. For example, character class unions, intersections, and differences -``([a[b]], [a&&[b]], [a&&[^b]])`` are intepreted as single characters +``([a[b]], [a&&[b]], [a&&[^b]])`` are intepreted as a single character class that contain ``[, &, and ^`` rather than union, intersection, or difference of the character classes.