# map along with regex\_replac

**URL:** <https://forum.ansible.com/t/map-along-with-regex-replac/28206>\
**Category:** Ansible Project\
**Created:** [July 31, 2018, 7:30am UTC](https://forum.ansible.com/t/map-along-with-regex-replac/28206 "2018-07-31T07:30:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kkumaar999](https://avatars.discourse-cdn.com/v4/letter/k/dec6dc/32.png) [@kkumaar999](https://forum.ansible.com/u/kkumaar999)\
**Post date:** [July 31, 2018, 7:30am UTC](https://forum.ansible.com/t/map-along-with-regex-replac/28206/1 "2018-07-31T07:30:36Z")

</div>

Hi all,

May I know what does the below filter does in ansible?

b: “{{ a | b.stdout\_lines | select(search, ^ + (someregex) + ’ )'|map(‘regex\_replace’, ‘.\*’) | list }}”
