# Text Parsing html

**URL:** <https://community.make.com/t/text-parsing-html/61641>\
**Category:** Questions\
**Tags:** text-parser\
**Created:** [November 18, 2024, 2:16pm UTC](https://community.make.com/t/text-parsing-html/61641 "2024-11-18T14:16:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlT](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@AlT](https://community.make.com/u/AlT)\
**Post date:** [November 18, 2024, 2:16pm UTC](https://community.make.com/t/text-parsing-html/61641/1 "2024-11-18T14:16:10Z")

</div>

I have downloaded a page’s html using HTTP get request and now I’m trying to extract the page’s category tags which are shown in the text.

 ![Screenshot 2024-11-18 140650](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/5/8/58da23833264575ef6aa4a7d2c3d8bd9d11693ea.png)

Here’s an example source url: [Example page - see Categories towards the bottom above the map](https://www.discovercarlisle.co.uk/eat-drink/abberley-house)

If the page categories include ‘Accommodation’ ‘Guest House-B&B’ or ‘Restaurant’ etc then I need to extract this info and create a list which I can then populate into a google sheet.

So far, I’ve got the html tag (using chatgpt to create the regex) which contains the category information but I cannot seem to extract just the category text.

The expression I’m using to extract the phrase so far is:

```auto
Categories:</strong>\s*((?:<[^>]+>[^<]+</[^>]+>\s*,?\s*)+)

```

And that’s giving me this output:

 ![Screenshot 2024-11-18 135741](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/a/7/a78b7f719a74d04037433390d93895e79b918e7b.png)

```auto
<a href="https://www.discovercarlisle.co.uk/eat-drink/category/accomodation" class="Accomodation EDNcategorycolor-default">Accomodation</a>, <a href="https://www.discovercarlisle.co.uk/eat-drink/category/guest-house-bb" class="Guest_House-B_B EDNcategorycolor-default">Guest House-B&B</a>

```

Note: The categories will change for each URL I do a HTTP request for.

In my scenario I need to do further text parsing to extract the category text I need. I’m therefore trying to further reduce the output using a second text parser (I imagine there’s a more succinct way to do this but I’m new to this) This expression is:

```auto
>([^<]+)<

```

…and that’s not working either despite what ChatGPT says. The result of the second text parser is empty.

[blueprint (1).json](https://community.make.com/uploads/short-url/qNzVQj4DKixcsknga9jPqJWXiep.json) (47.9 KB)

Any ideas how I can get just the data back that I need?

---

<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 16, 2025, 2:30pm UTC](https://community.make.com/t/text-parsing-html/61641/2 "2025-02-16T14:30:34Z")

</div>


