Use sed to replace character with multiple conditions
<p>I need to replace all dot characters before equals mark, but I couldn't figure out how to go at it, as there are 2 conditions involved.</p>

<pre><code>lib.libraries=cache,common,myjar.jar,blablabla
</code></pre>

<p>should be </p>

<pre><code>lib_libraries=cache,common,myjar.jar,blablablam
</code></pre>

<p>Playing around for a long while on <a href="http://regexr.com/" rel="nofollow">http://regexr.com/</a> for the right regex didn't help. It seems straightforward, but I'm quite new to regex's and I just can't crunch this one.</p>

<p>Edit: Forgot to mention - I also need to deal with multiple dot seperators i.e. <code>lib.libraries.library.etc=cache,common,myjar.jar,blablabla</code></p>