1)Array Of String Question, i want Count Of rohit And Vishal
arry={“Visha+l”,“1Visha-l”,“Rohit123”," i Am V%ishal"," Vis*hal","@123V@ishal ",“rohi&t”}
Vishal Count is=5
Rohit Count is=2
How Will DO this Using String Operation
1)Array Of String Question, i want Count Of rohit And Vishal
arry={“Visha+l”,“1Visha-l”,“Rohit123”," i Am V%ishal"," Vis*hal","@123V@ishal ",“rohi&t”}
Vishal Count is=5
Rohit Count is=2
How Will DO this Using String Operation
Try this in Assign activity
' Count occurrences of "Vishal" and its variations
vishalCount = arry.Count(Function(str) System.Text.RegularExpressions.Regex.IsMatch(str, "(?i)v.?i.?s.?h.?a.?l"))
' Count occurrences of "Rohit" and its variations
rohitCount = arry.Count(Function(str) System.Text.RegularExpressions.Regex.IsMatch(str, "(?i)r.?o.?h.?i.?t"))
Code:
Output:
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.