Count the number of occurence of a Text in the Scraped Data

I have an attendance web application in which i have to count the number of absent students.
So i need to count the occurence of “Absent” text. How can i do that?

@shalu.mittal

Try this:

System.Text.RegularExpressions.Regex.Matches(text, “Absent”).Count

1 Like

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