我有几个与STRINGDECDOE()
INSERT INTO EPSG_ALIAS
(ALIAS_CODE, OBJECT_TABLE_NAME, OBJECT_CODE, NAMING_SYSTEM_CODE, ALIAS, REMARKS)
VALUES
(1431, 'Datum', 6123, 7300, STRINGDECODE('Kartastokoordinaattij\ufffdrjestelm\ufffd (1966)'), NULL);
如何用{/ 1>替换STRINGDECODE('Kartastokoordinaattij\ufffdrjestelm\ufffd (1966)')
e'Kartastokoordinaattij\ufffdrjestelm\ufffd (1966)'
在java中使用正则表达式
答案 0 :(得分:0)
即使使用"引用单引号"在文本中(例如,'It''s working'
:
private static final Pattern PATTERN
= Pattern.compile("\\bSTRINGDECODE\\(('[^']*(?:''[^']*)*')\\)");
// in code:
PATTERN.matcher(theInput).replaceAll("e$1")