I have a requirement to match all array<..>
in the entire sentence and replace only <>
to []
(replace <> with [] which have prefix array).
I haven't got any clue to resolve this. It will be great if anyone can provide any clue for this issue?
Input
<tr><td>Asdft array<object> tesnp array<int></td>
<td>asldhj
ashd
repl array<String>
array
asdhl
afe array<object>
endoftest</td></tr>
Expected Output
<tr><td>Asdft array[object] tesnp array[int]</td>
<td>asldhj
ashd
repl array[String]
array
asdhl
afe array[object]
endoftest</tr></td>