# Need help in exploring how to use regular expression to find the correct file name in a play book

**URL:** <https://forum.ansible.com/t/need-help-in-exploring-how-to-use-regular-expression-to-find-the-correct-file-name-in-a-play-book/24321>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [April 26, 2017, 6:50am UTC](https://forum.ansible.com/t/need-help-in-exploring-how-to-use-regular-expression-to-find-the-correct-file-name-in-a-play-book/24321 "2017-04-26T06:50:03Z")\
**Posts on this page:** 1\
**Page:** 1

<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:** [April 26, 2017, 6:50am UTC](https://forum.ansible.com/t/need-help-in-exploring-how-to-use-regular-expression-to-find-the-correct-file-name-in-a-play-book/24321/1 "2017-04-26T06:50:03Z")

</div>

Use the find module to find the file(s) en register the output in a variable and use the result to change the files.
