# Ansible regex replace

**URL:** <https://forum.ansible.com/t/ansible-regex-replace/30898>\
**Category:** Ansible Developer\
**Created:** [July 30, 2019, 6:26am UTC](https://forum.ansible.com/t/ansible-regex-replace/30898 "2019-07-30T06:26:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pankaj\_arora](https://avatars.discourse-cdn.com/v4/letter/p/f4b2a3/32.png) [@Pankaj\_arora](https://forum.ansible.com/u/Pankaj_arora)\
**Post date:** [July 30, 2019, 6:26am UTC](https://forum.ansible.com/t/ansible-regex-replace/30898/1 "2019-07-30T06:26:33Z")

</div>

Hi,

I have var file in which I want to replace dot in maven group id with forwarding slash.

NEXUS\_REST\_API\_PARAMS: “**{{ {{ MVN\_GROUP\_ID }} | regex\_replace(‘[.]’,‘//’) }}**/{{ MVN\_ARTIFACT\_ID }}/{{ MVN\_VERSION }}/{{ PACKAGING }}”

Any help would be appreciated.

Thanks in advance.
