Date: June 22, 2022 Categories: Development Tags: bash, regex Comments: 0 bash: look behind regex API_DOMAIN=test.api.test.selectiont.com #API_DOMAIN={{HOST_PREFIX}}{{?API_ID}}.{{sm_domain}} If its a comment dont change it perl -pe 's/(?<=#)$key=.*/$key=$value//g' $file; Leave a Reply Cancel replyYour email address will not be published.Comment Name Email Website Save my name, email, and website in this browser for the next time I comment.