提取mysql中<ref>标记之间的数据

时间:2019-06-11 17:59:18

标签: mysql sql

mySQL列将HTML字符串作为数据,我想提取介于.......之间的所有数据。

  Example:

    <table border="1" bordercolor="#D9E3FF" cellpadding="4" cellspacing="0" class="footnote" width="500">
    <tbody>
        <tr>
            <td align="left" valign="top">dummy data<br />
            dummy data<br />
            dummy data<br />
            <br />
            <strong>Selected Notices:</strong> <ref>83-72</ref>, <ref>85-48</ref>, <ref>88-24</ref>, <ref>94-6</ref>, <ref>95-37</ref>, <ref>03-20</ref>.</td>
        </tr>
    </tbody>
</table>

Expected Result:
88-24,94.6,95-37,03-20

1 个答案:

答案 0 :(得分:0)

尝试先搜索类似问题,例如

MySQL REGEX - Extract Data from String