Question: I am trying to substitute a new version in my yaml file using sed, but I cannot figure out what I am missing from this statement.

I want to convert 

```
version: "x.x.x"

```

to 

```
version: "z.z.z"

```

Here is my current sed Statement:

```
sed -i "" "s|version: "[[:digit:]].[[:digit:]].[[:digit:]]"\|version: "${VERSION}"|" file.yaml

```

Answer: 
```
sed -i -r "s@version: [0-9]+\.[0-9]+\.[0-9]+@version: ${VERSION}@" file.yaml

```
```
$ sed 's/\(version: "\)[^"]*/\1'"$VERSION"'/' file
version: "z.z.z"

```