# Get a value after a certain text in http

**URL:** <https://community.make.com/t/get-a-value-after-a-certain-text-in-http/57166>\
**Category:** Questions\
**Tags:** http\
**Created:** [October 7, 2024, 5:20am UTC](https://community.make.com/t/get-a-value-after-a-certain-text-in-http/57166 "2024-10-07T05:20:36Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [October 7, 2024, 7:48am UTC](https://community.make.com/t/get-a-value-after-a-certain-text-in-http/57166/4 "2024-10-07T07:48:52Z")

</div>

Welcome to the Make community!

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/3/a/3a0c58927f26b0aa42ae058e92d98af878686a3a.png)

You can use a Text Parser “[Match Pattern](https://www.make.com/en/help/tools/text-parser)” module with this Pattern (regular expression):

```plaintext
stock price today is (?<price>\d+\.\d+)

```

**Proof** [https://regex101.com/r/0n4HgB/1](https://regex101.com/r/0n4HgB/1)

### Important Info

- ⚠ **Global match** must be set to **NO**!

## Screenshot

 ![Screenshot_2024-10-07_151056](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/0/e/0ef0b0f12edb18ffa5eb8c83a91e28c70f46c6cb.png)

## Output

 ![Screenshot_2024-10-07_151007](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/b/a/bafafc4cb9a36f45adedfacbbee062783f4ba219.png)

* * *

For more information, see [Text Parser](https://www.make.com/en/help/tools/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](https://en.wikipedia.org/wiki/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](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions).
> - For a tutorial on how to create regular expressions, we recommend the [RegexOne website](https://regexone.com/).
> - For an easy, quick regex generator, try the [Regular Expressions generator](https://regex-generator.olafneumann.org/).
> - For experimenting with regular expressions, we recommend the [regular expressions 101 website](https://regex101.com/). Just make sure to tick the ECMAScript (JavaScript) FLAVOR in the left panel.

## Module Export - quick import into your scenario

You can **copy** and **paste** this module export into your scenario. This will import the modules (with fields/settings/filters) shown in my screenshots above.

1. Move your mouse over the line of code below. Copy the JSON by clicking the copy button on the **right** of the code, which looks like this:  
 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/c/8/c84e1e230dccfa07b6d6d27e2c0fecf7dc7a5c32.png)

2. Enter your scenario editor. Press ESC to close any dialogs. Press CTRLV (paste keyboard shortcut for Windows) to paste directly in the editor.

3. Click on each imported module and re-save it for validation. There may be some errors prompting you to remap some variables and connections.

**JSON module export** — paste this directly in your scenario

```json
{"subflows":[{"flow":[{"id":225,"module":"http:ActionSendData","version":3,"parameters":{"handleErrors":true,"useNewZLibDeCompress":true},"mapper":{"url":"https://www.investing.com/equities/spiltan-investment-ab","serializeUrl":false,"method":"get","headers":[],"qs":[],"bodyType":"","parseResponse":false,"authUser":"","authPass":"","timeout":"","shareCookies":false,"ca":"","rejectUnauthorized":true,"followRedirect":true,"useQuerystring":false,"gzip":true,"useMtls":false,"followAllRedirects":false},"metadata":{"designer":{"x":1418,"y":-1365},"parameters":[{"name":"handleErrors","type":"boolean","label":"Evaluate all states as errors (except for 2xx and 3xx )","required":true},{"name":"useNewZLibDeCompress","type":"hidden"}]}},{"id":227,"module":"regexp:Parser","version":1,"parameters":{"pattern":"stock price today is (?<price>\\d+\\.\\d+)","global":false,"sensitive":true,"multiline":false,"singleline":false,"continueWhenNoRes":false},"mapper":{"text":"{{225.data}}"},"metadata":{"designer":{"x":1718,"y":-1365},"parameters":[{"name":"pattern","type":"text","label":"Pattern","required":true},{"name":"global","type":"boolean","label":"Global match","required":true},{"name":"sensitive","type":"boolean","label":"Case sensitive","required":true},{"name":"multiline","type":"boolean","label":"Multiline","required":true},{"name":"singleline","type":"boolean","label":"Singleline","required":true},{"name":"continueWhenNoRes","type":"boolean","label":"Continue the execution of the route even if the module finds no matches","required":true}]}}]}],"metadata":{"version":1}}

```

_Note: Did you know you can reduce the size of blueprints and module export code like the above, using the [Make Blueprint Scrubber](https://community.make.com/t/free-tool-reduce-blueprint-module-export-by-removing-extra-details/50697)?_

Hope this helps! Let me know if there are any further questions or issues.

— @samliew

P.S.: Investing some effort into the [Make Academy](https://academy.make.com) will save you lots of time and frustration using Make.

---

_[View the full topic](https://community.make.com/t/get-a-value-after-a-certain-text-in-http/57166)._
