假设我在 Postgres 中有一个具有此值的文本字段:
'bar$foo$john$doe$xxx'
我想将最后一次出现的美元 ( $) 字符替换为另一个字符,例如“-”。替换后该字段的内容应为:
$
'bar$foo$john$doe-xxx'
postgresql regular-expression replace
postgresql ×1
regular-expression ×1
replace ×1