I am trying to run the following bash program with sed and I am seeing an sed: -e expression #1, char 44: Invalid range end . I tried adding the -r option but still seeing the error.
#!/bin/bash
TEST="--extra-vars user=jsmith a=abcd --test"
echo $TEST | sed -re "s/(--extra-vars )([a-zA-z0-9\=\s]*)\b/\1\2/g"