I need to match a string (let's name it "/export/home") and everything that follows (including optional new lines) until the next occurence of this string.
I tried /(/export/home.\n.)(.)/ but it won't match the correct set from string to string.
Example:
/export/home/bla "123" "bla" test 1
/export/home/bla "123" "bla" test 2
/export/home/bla "123" "bla" test 3
test4
test5
/export/home/bla "123" "bla" test 6
/export/home/bla "123" "bla" test 7
/export/home/bla "123" "bla" test 8
test9
/export/home/bla "123" "bla" test 1
Everything and including from /export/home until the next /export/home should be matched. Any help is appreciated, thanks in advance