E
eggie5
I want to do a simple regex replace on a file. I want to replace this
multiline match
<!--scripts-->[\\S\\s]*?<!--endscripts-->
with this string:
<script type="text/javascript" src="/path/to/javascript.js"></script>
How can I do this with ruby assuming my file is: /html/page.html
multiline match
<!--scripts-->[\\S\\s]*?<!--endscripts-->
with this string:
<script type="text/javascript" src="/path/to/javascript.js"></script>
How can I do this with ruby assuming my file is: /html/page.html