I got this string:
scQA00-psql11 scQA00-psql21 scQA01-psql2 scQA00-psql21
scqa00-psql01 scqa00-psql11 scqa00-psql21
I want to match only:
scQA00 scQA00 scQA01 scQA00
scqa00 scqa00 scqa00
I tried with: [^-]+
but cannot get any further than this :(
I tried also (.*?)(?=-)+
But it match only first occurrence.
How could i match everything before hyphen but to ignore spaces?