i have richtextbox1 with multiline of code populating and i want specific text to be extracted and added to listbox1.
i want
like this
the ||| will be splitted by me later.
every line that has <a title=" and href=" add to listbox1
Code:
<a title="Top 16 Scariest Ghostly Moments Caught on Camera | Spooky Moments Compilation" class="yt-simple-endpoint style-scope ytd-video-renderer" id="video-title" aria-label="Top 16 Scariest Ghostly Moments Caught on Camera | Spooky Moments Compilation by Newsflare 3 months ago 5 minutes, 22 seconds 686,844 views" href="/watch?v=KkNVZeAKEgE">
<yt-icon class="style-scope
<a title="Insane Poltergeist Activity in Haunted Home (Ghost caught on camera)" class="yt-simple-endpoint style-scope ytd-video-renderer" id="video-title" aria-label="Insane Poltergeist Activity in Haunted Home (Ghost caught on camera) by MindSeed TV 6 months ago 32 minutes 1,217,880 views" href="/watch?v=q9S1hKsthpw">
<yt-icon class="style-scope
<a title="Top 10 Times Ghosts Were Actually Caught On Camera" class="yt-simple-endpoint style-scope ytd-video-renderer" id="video-title" aria-label="Top 10 Times Ghosts Were Actually Caught On Camera by WatchMojo.com 9 months ago 9 minutes, 50 seconds 1,442,232 views" href="/watch?v=4Ur_yxQA49I">
<yt-icon class="style-scope
Code:
Top 16 Scariest Ghostly Moments Caught on Camera | Spooky Moments Compilation ||| /watch?v=KkNVZeAKEgE
the ||| will be splitted by me later.
every line that has <a title=" and href=" add to listbox1