Is there some way to ignore text (
Hello @Vivek_Kumar1,
You may try using the HTML to Text Text parser module for this.
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.
In your HTTP module settings “Parse response” field, select “YES” (it is “No” by default)
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
-
Text Parser in the Make Help Center:
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.
- The complete list of metacharacters can be found on the MDN web docs website.
- For a tutorial on how to create regular expressions, we recommend the RegexOne website.
- For an easy, quick regex generator, try the Regular Expressions generator.
- For experimenting with regular expressions, we recommend the regular expressions 101 website. Just make sure to tick the ECMAScript (JavaScript) FLAVOR in the left panel.
Hope this helps!