Hello,
I have a scrapped data such as: " as the 392 this is 11 the example of the 98 1 3 2"
I need to:
- Count the number occurence. In this case, 392, 11, 98, 1, 3 and 2 → no. numbers: 6
- Get the first number shown: 392
Thanks.
Hello,
I have a scrapped data such as: " as the 392 this is 11 the example of the 98 1 3 2"
I need to:
Thanks.
Use Matches activity using digit expression.
Hi,
Hope the following helps you.
- Count the number occurence. In this case, 392, 11, 98, 1, 3 and 2 → no. numbers: 6
System.Text.RegularExpressions.Regex.Matches(strData,"\d+").Count
- Get the first number shown: 392
System.Text.RegularExpressions.Regex.Matches(strData,"\d+")(0).Value
or
System.Text.RegularExpressions.Regex.Match(strData,"\d+").Value
Regards,
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.