Dears
How To Find the Total Number of Similar Words in Given Scraped Text ? Thanks
Is it static or dynamic word ?
If it is static then try below one.
-
Assign that scraped text to one string variable and say âscrapedTextâ.
Int wordCount = scrapedText.Split("requiredWord"c).count
hi
hope this expression would help you
int_count = Split(stringinput,âyourkeywordâ).Count
Cheers @hsendel
Still need to convert the whole expression to integer :
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
I understand, by adding the operator it will recognize it as integer automatically, right?
if the condition is added it will taken as boolean
but the expression involved in it, compared between is a integer,
Cheers @hsendel
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.