# Jinja2 support for regex?

**URL:** <https://forum.ansible.com/t/jinja2-support-for-regex/12362>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [February 15, 2013, 7:56pm UTC](https://forum.ansible.com/t/jinja2-support-for-regex/12362 "2013-02-15T19:56:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [February 15, 2013, 7:56pm UTC](https://forum.ansible.com/t/jinja2-support-for-regex/12362/1 "2013-02-15T19:56:05Z")

</div>

I can work on making the re module available to Jinja2. Please file  
a github ticket.

Super easy to add.

Thought I did it already actually, but guess not.

I agree with [http://xkcd.org/1171/](http://xkcd.org/1171/) to some extent personally and  
typically use ".replace" on a string when I can 🙂 Not saying we  
should not make it available.
