I'm having a problem making this Low Replace statement work. Basically I'm trying to use Low Replace to change any local URLs for images to use our CDN URL. I am using the {site_url} EE variable and a global variable I created called {cdn}. So when I ran the following code, the replacement didn't happen.
{exp:low_replace find="{site_url}images/" replace="{cdn}/images/"}
<img src="http://www.domain.com/images/test.png" />
{/exp:low_replace}
If I try and just put in the actual site URL in the find parameter, then it does work. But I don't want to do that since it makes switching between environments with different URLs a hassle.
Any ideas what I can do?