In addition to Michael Kay’s good answer, if you want to use only the replace() function, use :
replace(.,'.*?(@FBst\d+).*','$1')
Result :
@FBst0451145 @FBst0451146
And if you only need the numbers from the above result, use :
replace(replace(.,'.*?(@FBst\d+).*','$1'), '[^0-9]+', ' ')
This creates :
0451145 0451146
source share