I'm using HerokuApp to create a reg_exp that matches the content of xml.
I'm not trying to parse xml but only to extract it.
<xml> <balise1> </balise1> <table> <tr> <td> cas1 </td> <td> cas2 </td> </tr> <tr> <td> new </td> <td> line </td> </tr> </table> </xml>
This is the pattern I wrote to match the content of tr tags. Thanks to this documentation
(?<content>(<tr>(.)*</tr>))
So, the output of this regular expression gives :
{
"content": [
[
"<tr> <td> cas1 </td> <td> cas2 </td> </tr> <tr> <td> new </td> <td> line </td> </tr>"
]
]
}
When I want it to be :
{
"content": [
[
"<tr> <td> cas1 </td> <td> cas2 </td> </tr>"
]
]
}
The problem seems to be that the first occurrence is not detected and only the last occurrence is.
How can I specify that "any number of char" must not contain a new tr tag ?
Do you have suggestions ?