Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam. As we work toward a solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts.
Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Find Occurrence of URL string in a document

tjamal1
8 - Asteroid

Hello,

 

I have a table that contains Web Page ID and Web Page HTML code

 

I need to find the ocurrance following paths 

 

1. devaelearning-cdn/module1/dashboard

and 

2. devaelearning-cdn/New

 

the first path can have module 1, module2, module3 ....... module8

 

Thanks

 

6 REPLIES 6
RishiK
Alteryx
Alteryx

@tjamal1 can you provide a sample.  You can potentially use regex to do this:

 

https://community.alteryx.com/t5/Alteryx-Designer-Discussions/Function-to-parse-phrase-word-only-reg...

ArtApa
Alteryx
Alteryx

Hi @tjamal1 - I attached a possible solution:

 

ArtApa_0-1610219891855.png

 

Qiu
21 - Polaris
21 - Polaris

@tjamal1 
I tried with Append tool.

0110-tjamal1.PNG

tjamal1
8 - Asteroid

@ArtApa @Qiu 

Thanks for the workflow,

 

 

Is it counting the URL if occurring a second time in the HTML Code?

 

Because some of my HTML code documents has same pattern of URL repeating 2nd time or 3rd time

 

like 

devaelearning-cdn/module3/dashboard/

ArtApa
Alteryx
Alteryx

Hi @tjamal1 - My workflow counts ALL rows in the Document Text Input tool, which contain URL Strings from the second Text Input. If you want to count new URL Strings (like devaelearning-cdn/module3/dashboard/) you just need to add them in the Text Input tool.

Labels
Top Solution Authors