Match and replace
How do I write a newline character in the Replace field, in "Match and Replace"? Which kind of notation is used? Is there any list of examples?
Thanks in advance.
This isn’t directly supported, but there is a workaround.
Create your match and replace rule with an X where you want your newline. Click the cog icon and save the options. Then edit this JSON file and replace X with \r\n When you reload the options you will have a newline in your rule.
Please let us know if you need any further assistance.
Thank you very much.
Please follow the instructions I provided. They work fine on Burp Free for me.
I was careful and did what you told me. I have no JSON file, only the key I mentioned, in the registry. And the result is as if the backslashes weren't there (I get the rn substring instead of a newline character). I am trying a replacement in the response body.
Is there any document about the syntax of the "regular expressions" Burp use?
I’ve attached a couple of screenshots that show you how to save the JSON file.
Burp uses Java regular expressions. This cheat sheet may help you:- http://www.omicentral.com/cheatsheets/JavaRegularExpressionsCheatSheet.pdf
I really appreciate your help. I updated to 1.7.23 version and studied the sheet.
With kind regards,