2020-05-06 23:21:13 +00:00
|
|
|
#include "FunctionStringReplace.h"
|
|
|
|
#include "FunctionFactory.h"
|
|
|
|
#include "ReplaceRegexpImpl.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
2020-09-07 18:00:37 +00:00
|
|
|
namespace
|
|
|
|
{
|
2020-05-06 23:21:13 +00:00
|
|
|
|
|
|
|
struct NameReplaceRegexpAll
|
|
|
|
{
|
|
|
|
static constexpr auto name = "replaceRegexpAll";
|
|
|
|
};
|
|
|
|
|
|
|
|
using FunctionReplaceRegexpAll = FunctionStringReplace<ReplaceRegexpImpl<false>, NameReplaceRegexpAll>;
|
|
|
|
|
2020-09-07 18:00:37 +00:00
|
|
|
}
|
|
|
|
|
2022-07-04 07:01:39 +00:00
|
|
|
REGISTER_FUNCTION(ReplaceRegexpAll)
|
2020-05-06 23:21:13 +00:00
|
|
|
{
|
|
|
|
factory.registerFunction<FunctionReplaceRegexpAll>();
|
2022-07-26 06:01:49 +00:00
|
|
|
factory.registerAlias("REGEXP_REPLACE", NameReplaceRegexpAll::name, FunctionFactory::CaseInsensitive);
|
2020-05-06 23:21:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|