FUNCTION confluence.REGEXP_REPLACE does not exist

Hi All,

In my confluence pages there are some old boken links which i wanted to update from the back end or using any other way.

I refered to this link and https://confluence.atlassian.com/display/CONFKB/Some+Attachments+or+Links+Are+No+Longer+Accessible+After+Server+Migration

But the step# 3 it throws error

mysql> update bodycontent set body = (select REGEXP_REPLACE(body, '\\|http://newserver/download/attachments/.*/', '|^', 'g')) where bodycontentid in (select bodycontentid from contentmigration);
ERROR 1305 (42000): FUNCTION confluence.REGEXP_REPLACE does not exist

I could understand that the function is not built-in in mySQL like Oracle.Is the function available in some repository.

Could any one please help me in resolving this .Also please let me know if there is any other way to replace the link.

Thanks in Advance,

Aravind

2 answers

0 votes
Joe Clark Atlassian Team Dec 17, 2012

I think you're right - the problem is that REGEXP_REPLACE is a built in function for Oracle databases.

This StackOverflow article has some suggestions for MySQL - maybe it will help? http://stackoverflow.com/questions/986826/how-to-do-a-regular-expression-replace-in-mysql

0 votes
Joe Clark Atlassian Team Dec 17, 2012

What version of MySQL are you using? The MySQL 5.1 documentation lists some regular expression string functions: http://dev.mysql.com/doc/refman/5.1/en/regexp.html#operator_regexp

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 11, 2018 in Confluence

What are your project planning tips?

Hello Community,  Jessica here from the Confluence product marketing team! Today I wanted to get your takes on project planning –– what works, what doesn’t, how do you know if you’re doing it r...

260 views 1 4
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you