M
Mehdi Karamnejad
I want to replace the value inside a HTML tag with another value using
gsub function and regexp,what is the best regexp for this purpose?
puts MyStr.gsub(/"What Should Be the Regex?"/, "NewValue")
example:
<span id="MySpan" class="current>VALUE</span>
above VALUE is what I want to replace with another value
gsub function and regexp,what is the best regexp for this purpose?
puts MyStr.gsub(/"What Should Be the Regex?"/, "NewValue")
example:
<span id="MySpan" class="current>VALUE</span>
above VALUE is what I want to replace with another value