# replace special charecters

**URL:** <https://forum.ansible.com/t/replace-special-charecters/28730>\
**Category:** Ansible Project\
**Created:** [October 5, 2018, 7:17am UTC](https://forum.ansible.com/t/replace-special-charecters/28730 "2018-10-05T07:17:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SUMIT\_SAHAY](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@SUMIT\_SAHAY](https://forum.ansible.com/u/SUMIT_SAHAY)\
**Post date:** [October 5, 2018, 7:17am UTC](https://forum.ansible.com/t/replace-special-charecters/28730/1 "2018-10-05T07:17:30Z")

</div>

Hi All,

I want to remove special character using ansible playbook, I can provide the sample data here below that I am trying to remove

“\nhostname username\n”\r

I want to remove \n and \r.

Looking forward for reply.

Regards  
Sumit Sahay
