if I have a line like this "Hello - World - Hello World"
I want to replace the PRECEDING FIRST characters of the substring instance "-"
eg. so replacing the above with "SUPERDOOPER" would leave: "SUPERDOOPER - World - Hello World"
So far, I got this: "^ [^ -] * -"
But that INCLUDES "-", which is not true.
how to do it with regex?
Weeububba
source
share