blob: bebfabaf637fb3ea469dc41f1980ae326afe073d (
plain) (
blame)
1
2
3
4
|
regexp_replace(str, regexp, rep) - replace all substrings of str that match regexp with rep
Example:
> SELECT regexp_replace('100-200', '(\d+)', 'num') FROM src LIMIT 1;
'num-num'
|