# Regex Capture does not keep durable variables

**URL:** <https://community.postman.com/t/regex-capture-does-not-keep-durable-variables/46426>\
**Category:** Help Hub\
**Tags:** bug\
**Created:** [April 17, 2023, 9:52am UTC](https://community.postman.com/t/regex-capture-does-not-keep-durable-variables/46426 "2023-04-17T09:52:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maluz](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@maluz](https://community.postman.com/u/maluz)\
**Post date:** [April 17, 2023, 9:52am UTC](https://community.postman.com/t/regex-capture-does-not-keep-durable-variables/46426/1 "2023-04-17T09:52:28Z")

</div>

I am trying Postman Flows, but the Regex Capture block behaves unexpectedly. I have created the minimal reproducible example to show the problem:

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/b/6/b64366c549b2fa9fe71d30e83294a64388d93640.png)

In the first “Create Durables” block, I set a durable variable `myDurableVar` that is forgotten after the “Regex Capture” block. I thought this is a bug because all the other blocks I have tried keep the durable variables after execution.
