Hello
I am trying to find a string and replace it with another one, but i am facing issue when the string has line breaks/spaces in it
I am trying to find the following
<tbody>
<tr>
<td>
{{ username }}
</td>
</tr>
</tbody>
and replace it with the following:
<thead>
<tr>
<td>
{{ salutation }}
</td>
</tr>
</thead>
<tbody>
<tr>
<td>
{{ username}}
</td>
</tr>
</tbody>
This is my regex which apparently isnt working the way I expect it to work
<\s*tbody[^>]*>(.*?)<\s*/\s*tbody>
Can someone please help me with this?
Many thanks