How To Find the Total Number of Similar Words in Given Scraped Text

Dears
How To Find the Total Number of Similar Words in Given Scraped Text ? Thanks

@hsendel

Is it static or dynamic word ?

If it is static then try below one.

  1. Assign that scraped text to one string variable and say ‘scrapedText’.

          Int wordCount = scrapedText.Split("requiredWord"c).count
1 Like

Thanks @lakshman, I got the following error :
image

2 Likes

hi
hope this expression would help you
int_count = Split(stringinput,“yourkeyword”).Count

Cheers @hsendel

1 Like

kindly let know for any queries or clarification
Cheers @hsendel

Still need to convert the whole expression to integer :
image

if you are using this in a IF condition then it should be with some conditional operators
like
int_count = Split(stringinput,“yourkeyword”).Count < 0
or
int_count = Split(stringinput,“yourkeyword”).Count > 0

some thing like that

Cheers @hsendel

1 Like

I understand, by adding the operator it will recognize it as integer automatically, right?

1 Like

if the condition is added it will taken as boolean
but the expression involved in it, compared between is a integer,

Cheers @hsendel

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.