I'm trying to replace anything after 'databaseDir=' in a config file:
# Config file example
homeDir=c:\Application\home
databaseDir=C:\OldApplication\home
(Get-Content -Path $configFile) -replace "databaseDir=*", "databaseDir=C:\Application\home"
This is not working. I thought *
matched any character after databaseDir=
How can I fix this?