"-dhello;-egoodbye;-lcul8r" -replace "-d.*;","-dbonjour;"

gives:

-dbonjour;-lcul8r

Is it possible to not have it get rid of goodbye?

Edit
Report