Highlighted
Contributor.
Contributor.
475 views

In need a regex expression for search and replace

My recordings generate a ton of lines like below:

web_add_cookie("s_fid=507AD161B722003C-3879B3F41158204C; DOMAIN=bill.flow.com");

I need a regex so i can find every line that starts with web_add_cookie and then i can replace it with a LF or spaces..

Probably simple, but I can't figure it out.

 

Jim

Tags (1)
0 Likes
2 Replies
Highlighted
Valued Contributor.
Valued Contributor.

Re: In need a regex expression for search and replace

Hi,

If you don't want to generate web_add_cookie function, you can disable it  in "Recoding options" --> "HTTP Properties" ->"Generate web_add_cookie functions"

0 Likes
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: In need a regex expression for search and replace

Hi,

A future note for regex references, I recommend using this website

All the best,

Lup.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.