How to count these rows using string operations?


Could someone help with the next string extracted from an application screen?

We need to count how many lines have data after the “_”, in this example it would be 4. How could I do this with an expression? Could someone please help with this?

Thank you very much,

Best regards.

lets assume we do have a string with linebreaks:

  • split the string on Linebreaks - array of string for each line
  • filter and count the lines
    • can be done with a for each…
    • LINQ

For the filter condition give a try with regex

In case of you can share the sample text as text file we can help more individually