I have a pattern " -[^ ]* ", the quotes are here to show the spaces. I want to match everything after it until this pattern again is encountered
" -[^ ]* "