I’m trying to create a list of text with regex. I need to return every line of text as a separate result. Do you have any idea how should the regex pattern look like? Thanks!
Best and easiest way to figure that out would be to do some testing and looking around on http://regexr.com/ it is an interactive tester that will show you how the results of the regex will go. Look at the Cheatsheet and examples and it may find what you are looking for.
It seems I’m not able to figure this out by myself. It should be simple. The only thing I need is to find every line and return it as it is, no replacements.
I’ve got it. Sorry, It was too easy to be true. Just ( .+)
Thanks for advice