# regexp multiline

**URL:** <https://forum.ansible.com/t/regexp-multiline/25952>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [November 7, 2017, 9:18pm UTC](https://forum.ansible.com/t/regexp-multiline/25952 "2017-11-07T21:18:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [November 7, 2017, 9:18pm UTC](https://forum.ansible.com/t/regexp-multiline/25952/1 "2017-11-07T21:18:43Z")

</div>

There are currently only two flags available for use in regular  
expression filters in ansible, which appear to be 'ignorecase' and  
'multiline':

[https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/filter/core.py](https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/filter/core.py)

You're not entirely bound by these restrictions, because it's possible  
to set flags by having your expression start with them:

[https://docs.python.org/2/library/re.html](https://docs.python.org/2/library/re.html) (at the 'iLmsux' header).

DIck
