# \[已解决\]解析mdx按单个例句+对应释义导出到Excel表格

**URL:** <https://forum.freemdict.com/t/topic/29040>\
**Category:** 技术交流与词典编修\
**Tags:** python, anki, 技术, ⭐star\
**Created:** [2024 年5 月 29 日 14:25 UTC](https://forum.freemdict.com/t/topic/29040 "2024-05-29T14:25:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

作者： ![shaoshi](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/shaoshi/32/14529_2.png) [@shaoshi](https://forum.freemdict.com/u/shaoshi)\
发布日期： [2024 年5 月 29 日 22:32 UTC](https://forum.freemdict.com/t/topic/29040/2 "2024-05-29T22:32:41Z")

</div>

简单的资料提取通常可以做得到，但得自己做，没人这么闲空帮人做。

我举一个假设性的例子，假设某词典的例子都有`<example>This is an example</eample>`标签。

1.先用mdxexport把mdx变成文本。详见[《新手指南：怎样编辑mdx？》](https://forum.freemdict.com/t/topic/16431)。

2.先用Emeditor让`<example>`都变成独立一行。  
replace `<example>` with `\n<example>`  
注意必须选勾regular expression(正则表达式)。

3.用Emeditor find – extract `<example>`。  
例子就全提取出来了。

这只是例子，不包括对应释义。你如果需要复杂的释义一一对应于例子的格式，那就需要复杂的编程，我就不说了，

---

_[View the full topic](https://forum.freemdict.com/t/topic/29040)._
