trying to trim untill and including symbol " - " .
for some reason, when i add ^(.*?) bash will not modify the varieble.
GNU bash, version 5.1.16(0)-release (amd64-portbld-freebsd12.2)
fname="text1 - text2.jpg"
outp="${fname//^(.*?)\s-\s/}"
echo $outp
expected result: text2.jpg
any suggestions?