# Searching for documentation covering the regex characters Ansible uses

**URL:** <https://forum.ansible.com/t/searching-for-documentation-covering-the-regex-characters-ansible-uses/26568>\
**Category:** Ansible Project\
**Created:** [January 25, 2018, 5:07pm UTC](https://forum.ansible.com/t/searching-for-documentation-covering-the-regex-characters-ansible-uses/26568 "2018-01-25T17:07:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dave](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@Dave](https://forum.ansible.com/u/Dave)\
**Post date:** [January 25, 2018, 5:07pm UTC](https://forum.ansible.com/t/searching-for-documentation-covering-the-regex-characters-ansible-uses/26568/1 "2018-01-25T17:07:12Z")

</div>

I’m trying to find a list of all regex characters Ansible uses in its definitions.

For example, the in the files module, the blockinfile definition has an insertafter parameter that accepts _regex_ instead of ‘EOF’ but I don’t see what type of regex is available or employed for word matching or substitution or how its defined.

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [January 25, 2018, 6:28pm UTC](https://forum.ansible.com/t/searching-for-documentation-covering-the-regex-characters-ansible-uses/26568/2 "2018-01-25T18:28:50Z")

</div>

It's Python  
[https://docs.python.org/2/library/re.html](https://docs.python.org/2/library/re.html)
