# My regex dont work with new version of mitm

**URL:** <https://discourse.mitmproxy.org/t/my-regex-dont-work-with-new-version-of-mitm/212>\
**Category:** Uncategorized\
**Created:** [October 20, 2016, 5:02pm UTC](https://discourse.mitmproxy.org/t/my-regex-dont-work-with-new-version-of-mitm/212 "2016-10-20T17:02:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![YuryHalf](https://avatars.discourse-cdn.com/v4/letter/y/839c29/32.png) [@YuryHalf](https://discourse.mitmproxy.org/u/YuryHalf)\
**Post date:** [October 20, 2016, 5:02pm UTC](https://discourse.mitmproxy.org/t/my-regex-dont-work-with-new-version-of-mitm/212/1 "2016-10-20T17:02:09Z")

</div>

Hi!  
Python 3.5.2 and mitmproxy 0.18.1 installed

When im using ~s to use regex all http websites and some https do not open.  
example:  
mitmproxy -T —port 8081 —replace :~s:content:replace

In previous versions such as 0.17 and later it works fine.  
Something wrong with my regex?or syntax has changed within python greater version?

---

<div class="post-metadata">

**Author:** ![mhils](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/mhils/32/7_2.png) [@mhils](https://discourse.mitmproxy.org/u/mhils)\
**Post date:** [October 23, 2016, 4:53am UTC](https://discourse.mitmproxy.org/t/my-regex-dont-work-with-new-version-of-mitm/212/2 "2016-10-23T04:53:53Z")

</div>

What you are describing looks like a bug. Could you lodge an issue at [https://github.com/mitmproxy/mitmproxy/issues](https://github.com/mitmproxy/mitmproxy/issues) please? 🙂  
Ideally, we’d have a single mitmproxy command (as you posted it here) with a curl invocation that reproduces the issue.

Thanks!

---

<div class="post-metadata">

**Author:** ![YuryHalf](https://avatars.discourse-cdn.com/v4/letter/y/839c29/32.png) [@YuryHalf](https://discourse.mitmproxy.org/u/YuryHalf)\
**Post date:** [October 23, 2016, 10:03am UTC](https://discourse.mitmproxy.org/t/my-regex-dont-work-with-new-version-of-mitm/212/3 "2016-10-23T10:03:12Z")

</div>

Thank you, I really thought that something was wrong.  
I left the issue message.
