I'm making replacments in PHP file and I need to change the language variable with sed. Here my WORKING code:
sed -i '' -e "s/\$config\['language'\] = \"english\";/\$config['language'] = '$LANGUAGE';/" Sources/$APP/application/config/config.php
This is not working to match any language set:
sed -i '' -e "s/\$config\['language'\] = \"*\";/\$config['language'] = '$LANGUAGE';/" Sources/$APP/application/config/config.php
What's wrong?