You could use the following pattern (as long as your strings are always formatted the way you said) :
^\w+(?=-.*\.bla)
The ^
sign matches the beginning of the string. And thus will take the very first match of the string.
The ?=
is meant to make sure the group following is not captured but is present.