, substitute, s/from_regex/to_result/. , 1.0.10, , [0-9.]. , , . sed
sed 's/rmd_ver=[0-9.]\+/rmd_ver=42/' filename
+ - , sed BRE ( ), .
If you want to avoid the coincidence of points at the ends, for example 1.2.3., you will have to change the regular expression to [0-9][0-9.]\+[0-9]to make sure that the first and last characters are not a point. Perhaps you also want to be able to match one digit, then you need to add an alternative (for example, /a|b/matches a or b) so that it matches:
sed 's/rmd_ver=\([0-9][0-9.]\+[0-9]\|[0-9]\)/rmd_ver=42/' filename
source
share