# Regex to extract image path - works outside of make but not inside

**URL:** <https://community.make.com/t/regex-to-extract-image-path-works-outside-of-make-but-not-inside/67885>\
**Category:** Questions\
**Tags:** regular-expressions\
**Created:** [January 30, 2025, 2:55pm UTC](https://community.make.com/t/regex-to-extract-image-path-works-outside-of-make-but-not-inside/67885 "2025-01-30T14:55:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steve6](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@Steve6](https://community.make.com/u/Steve6)\
**Post date:** [January 30, 2025, 2:55pm UTC](https://community.make.com/t/regex-to-extract-image-path-works-outside-of-make-but-not-inside/67885/1 "2025-01-30T14:55:17Z")

</div>

I’m trying to extract the main image URL (raw data is fine, I’ll append later to make it an absoluteurl) from a blog post. I’ve created the regex and applied it against my source outside of [make.com](http://make.com) and it works fine. Not within [make.com](http://make.com) however.

Here is my regex: \<img[^\>]+id\s\*=\s\*[“']blog-main-image[”'][^\>]+src\s\*=\s\*"'["']

and here is the section of the file that’s the output from my http get module before my parser:

```auto
</section>
            <section class="container main-container mt-5">
                <div class="row">
                    <div class="col-lg-12 mb-5">
                        <div class="post">
                            <div class="post-image">
                                <img src="/admin/uploads/posts/post_13_image.png" id="blog-main-image" alt="Blog Post Image" class="img-fluid scalable">
                            </div>

```

Here is my text parser configuration:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/4/b/4b332f2e7a346858551ea83d7a27e3425f3f774e.jpeg)

and here is the input sceen from make… Any suggestions here? Thanks so much!

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

---

<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:** [January 30, 2025, 2:58pm UTC](https://community.make.com/t/regex-to-extract-image-path-works-outside-of-make-but-not-inside/67885/2 "2025-01-30T14:58:43Z")

</div>

Welcome to the Make community!

When reaching out for assistance with extracting text, it would be super helpful if you could share the actual text you’re trying to match. Screenshots of text can be a bit tricky, so if you could **copy and paste the text directly here** , that would be awesome! It ensures we can run it against test patterns effectively. If there’s any sensitive info, feel free to change it to something fictional yet still valid by **keeping the format intact**.

Providing clear text examples saves time on both ends and helps us give you the best possible solution. Without proper examples, we might end up playing a guessing game, and nobody wants that as it is a waste of time! You are more likely to get a correct answer faster. So, help us help you by sharing those text snippets.

Please format the example text this way to preserve line breaks and special characters:

These are the two ways to format text so that it won’t be modified by the forum:

- **Method 1: Type code block manually**

- **Method 2. Highlight and click the format button in the editor**

Otherwise, could you go to [regex101.com](http://regex101.com), paste in your Pattern at the top and paste a complete/full example text you are trying to match from below it?

[![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/0/d/0de696d8c69af8d7ee22b29a27a158ba7cbb1270.png)](http://regex101.com)

Then, **save** the regex example and **share the link** with us here.

This will allow others to assist you here with your pattern. Thanks!

— @samliew

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

---

<div class="post-metadata">

**Author:** ![Steve6](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@Steve6](https://community.make.com/u/Steve6)\
**Post date:** [January 30, 2025, 3:39pm UTC](https://community.make.com/t/regex-to-extract-image-path-works-outside-of-make-but-not-inside/67885/3 "2025-01-30T15:39:34Z")

</div>

I made the changes. thanks for your help

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [February 14, 2025, 7:15am UTC](https://community.make.com/t/regex-to-extract-image-path-works-outside-of-make-but-not-inside/67885/4 "2025-02-14T07:15:34Z")

</div>


