Skip to content
Advertisement

How to split a variable with text content on an empty line [closed]

how can i split a variable with text content by every empty line? Maybe into an array or something like this …

Example:

JavaScript

maybe into:

JavaScript

Thanks!

Advertisement

Answer

Replace nn with something not contained in the data, set IFS to it, populate the array.

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement