I am trying to count number of occurrences of pipe symbol in Hive - (6)
select length(regexp_replace('220138|251965797?AIRFR?150350161961|||||','^(?:[^|]*\\|)(\\|)','')) from smartmatching limit 10
This is what I am trying and I am not getting it right.
This will work
SELECT LENGTH(regexp_replace('220138|251965797?AIRFR?150350161961|||||','[^|]',''))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With