auth_analyzer icon indicating copy to clipboard operation
auth_analyzer copied to clipboard

The option to *regex match and replace* parts of the request without relying on parameter

Open rew1nter opened this issue 2 years ago • 3 comments

I often find myself in situations where I want to replace a string in some part of request which has no parameter. It'd be great to have such a feature where you can have the request in separate parts(i.e the first line, all the headers, body) as strings and regex match replace them without relying on parameters.

P.S AutoRepeater also had such features which are currently dead.

rew1nter avatar Apr 19 '22 16:04 rew1nter

Hi @rew1nter. Have you seen the Match and Replace feature?

grafik

With this it is already possible to match/replace specific parts without specifying a parameter. Adding an additional regex possibility to identify match patterns would make sense. Functionality to declare the location (e.g. first line, ...) would increase the usage complexity and would also be used really rarely from my point of view (in almost every case it is possible to declare a unique match pattern without limiting the location).

simioni87 avatar Apr 23 '22 10:04 simioni87

Consider this. You're matching a string that is in the first line and body but also in a cookie parameter. Now if you regex match replace the entire request, the cookie parameter will change too. Where changing the cookie param will cause the request to fail. In such scenario functionality to declare the location of match n replace would be really useful.

scarletturtle avatar Apr 23 '22 14:04 scarletturtle

Just realized. I'm replying from another account

scarletturtle avatar Apr 23 '22 14:04 scarletturtle