I have a String which looks like this:
some text variableName
I want to fetch the bold text between the line break on the first row and a previously identified variable on the second row. The first row of text differs from time to time, that’s why I want to use the line break as a seperator.
How can I code this with regex? I know that you have to do something like the example below but how do you handle line breaks in such an expression? Can you use /n?