# Regular Expression

**URL:** <https://discuss.elastic.co/t/regular-expression/312426>\
**Category:** Elasticsearch\
**Created:** [August 19, 2022, 5:31am UTC](https://discuss.elastic.co/t/regular-expression/312426 "2022-08-19T05:31:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pranjal\_Sett](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pranjal_sett/32/98834_2.png) [@Pranjal\_Sett](https://discuss.elastic.co/u/Pranjal_Sett)\
**Post date:** [August 19, 2022, 5:31am UTC](https://discuss.elastic.co/t/regular-expression/312426/1 "2022-08-19T05:31:09Z")

</div>

Hi,

Can anyone please help me with this regular expression!!

So, this is my string 'timerange={timerange from=\"now/d\" to=\"now/d\"}' I want to findall and replace with 'timerange={timerange from=\"2022-08-19T04:00:00.000Z\" to=\"2022-08-19T17:00:00.000Z\"}'

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 16, 2022, 5:32am UTC](https://discuss.elastic.co/t/regular-expression/312426/2 "2022-09-16T05:32:03Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
