Robert Klemme
10/23/2007 8:26:00 AM
2007/10/23, eggie5 <eggie5@gmail.com>:
> 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
Please show us what you have already.
Kind regards
robert