I have an html file which contains a line like this:
base_url = '',
Sometimes there may be nothing between the single quotes; sometimes there might be a url there. How do I write single line perl command which fills in the string with a base url?
I tried this, but it doesn't work:
perl -pe 's/(base_url = \')(.+)/https:\/\/www\.example\.com(\',)/eg' -i index.htm
Thanks