# Kafka http sink connector regex.patterns/regex.replacements

**URL:** <https://forum.confluent.io/t/kafka-http-sink-connector-regex-patterns-regex-replacements/8737>\
**Category:** Confluent Cloud\
**Created:** [19 September 2023 21:18 UTC](https://forum.confluent.io/t/kafka-http-sink-connector-regex-patterns-regex-replacements/8737 "2023-09-19T21:18:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ko1](https://avatars.discourse-cdn.com/v4/letter/k/e19b73/32.png) [@ko1](https://forum.confluent.io/u/ko1)\
**Post date:** [19 September 2023 21:18 UTC](https://forum.confluent.io/t/kafka-http-sink-connector-regex-patterns-regex-replacements/8737/1 "2023-09-19T21:18:24Z")

</div>

I am enabling an http sink connector with multipe kafka topics. I would like to use kafka’s templating url feature with regex find and replace

the url form would be as follows [example.com/{$topic}](http://example.com/%7B$topic%7D)

the topic would be of form: this-is-the-topic-name

i would like to change it to this\_is\_the\_topic\_name

final url would be come : [example.com/this\_is\_the\_topic\_name](http://example.com/this_is_the_topic_name)

the config is: Regular expression patterns: [-]\*  
Regular expression replacements: \_
