Is there some way to ignore a some text coming in a string value?

Is there some way to ignore text (

) that is coming in a string value?

image

Hello @Vivek_Kumar1,
You may try using the HTML to Text Text parser module for this.

2 Likes

Hey @Vivek_Kumar1

You can use the replace function to remove unwanted strings, and you can also use text parser, such as ‘HTML to text ,’ here.

1 Like

In your HTTP module settings “Parse response” field, select “YES” (it is “No” by default)

Screenshot_2023-12-19_141214

This will allow you to map the response collection properties (variables) in subsequent modules.

Then, you can reference the product_details variable directly.

You can use the built-in function replace

e.g.:

{{ replace(1.product_details; "/<\/?div>/g"; emptystring) }}

For more information, see

Match Pattern
The Match pattern module enables you to find and extract string elements matching a search pattern from a given text. The search pattern is a regular expression (aka regex or regexp), which is a sequence of characters in which each character is either a metacharacter, having a special meaning, or a regular character that has a literal meaning.

Hope this helps!

2 Likes