Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Regex / pipe string extraction help

$
0
0

@kevin1793 wrote:

Need to return a substring between two specified strings.

I have this excerpt from an XML url.

<div class="hs-featured-image-wrapper"> <a href="http://news.hurstfs.com/blog/fact-vs.-myth-best-ways-to-manage-your-garden-and-flower-beds" title="" class="hs-featured-image-link"> <img src="http://news.hurstfs.com/hubfs/image1%20copy%202.png?t=1496778496754" alt="image1 copy 2.png" class="hs-featured-image" style="width:auto !important; max-width:50%; float:left; margin:0 15px 15px 0;"> </a> </div> <p><span style="font-weight: 400;">Getting ready to garden? Here are some tips to ensure that this year’s garden is a success.</span></p>

I need to return the img src and the actually description that is merged with all this formatting

here is what I have so far...

<h6>
        {{entry.getElementsByTagName('description')[0].textContent | regexp() }}<br><br>
</h6>

I was using SLICE, but i need to get the string between two specific strings instead of the indexes.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>