Converting a String by every nth line

Morning everyone! I am trying to split a string every fourth line. Any advise on how to achieve this?

Hi @Chance_Mena

Welcome to Community!

Please using the below method.

YourTextString.Split({“([^\n]*\n?){4}”},StringSplitOptions.None)

image

Regards

1 Like

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