# string concatenation with special characters

**URL:** <https://forum.ansible.com/t/string-concatenation-with-special-characters/27531>\
**Category:** Ansible Project\
**Created:** [May 15, 2018, 10:56am UTC](https://forum.ansible.com/t/string-concatenation-with-special-characters/27531 "2018-05-15T10:56:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ali.khawaja](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@ali.khawaja](https://forum.ansible.com/u/ali.khawaja)\
**Post date:** [May 15, 2018, 10:56am UTC](https://forum.ansible.com/t/string-concatenation-with-special-characters/27531/1 "2018-05-15T10:56:10Z")

</div>

i am trying to append a backslash between two string variables.

dc + ‘/’ + item

this works fine. but what i need is backslash. i could not figure how to insert a backslash. i have tried two backslashes, lot of other trial and error but nothing works. can anyone please let me know what the issue is, and why simple string contatenation with an escape character does not work?

Thanks  
Ali
