Skip to content

Allow for multi-word replace via strings #141

@martindsouza

Description

@martindsouza

See: https://github.com/mortenbra/alexandria-plsql-utils/blob/master/ora/string_util_pkg.pkb#L952

But instead look at not using arrays and perhaps pipe (or some similar regexp type expression) that is parsed. Delimiter param may be an option.

Could break this up into two functions. One for simple replace and one for multi-regex replace...

Also make this 12c pragma udf

Tech Notes

I think having oos_util_string.multi_replace(p_str, p_search_1, p_replace_1, p_search_2, p_replace_2 ... <up to 10>.

We can also over load this function with arrays so use: oos_util_string.multi_replace(p_str, p_search <oos_util.tab_vc2_arr>, p_replace <oos_util.tab_vc2_arr>)

One of these functions should call the other so that we have only one function that actually does the replacing.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions