# 求例句中找出单词的代码和技巧

**URL:** <https://forum.freemdict.com/t/topic/28437>\
**Category:** 技术交流与词典编修\
**Created:** [2024 年4 月 28 日 08:03 UTC](https://forum.freemdict.com/t/topic/28437 "2024-04-28T08:03:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

作者： ![1寂静](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/1/c0e974/32.png) [@1寂静](https://forum.freemdict.com/u/1%E5%AF%82%E9%9D%99)\
发布日期： [2024 年4 月 28 日 08:03 UTC](https://forum.freemdict.com/t/topic/28437/1 "2024-04-28T08:03:21Z")

</div>

求例句中找出单词的代码和技巧。。

 ![QQ截图20240426104946](https://forumcdn.freemdict.com/uploads/default/original/3X/5/9/59ad174ec6c90b4ee45b7b38bc577ecc2c341beb.png)

---

<div class="post-metadata">

作者： ![amob](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/amob/32/14630_2.png) [@amob](https://forum.freemdict.com/u/amob)\
发布日期： [2024 年4 月 28 日 09:00 UTC](https://forum.freemdict.com/t/topic/28437/2 "2024-04-28T09:00:11Z")

</div>

![Screenshot_2024-04-28-16-59-46-437_com.microsoft.emmx-edit](https://forumcdn.freemdict.com/uploads/default/original/3X/8/4/84446ec99c1af067d9a83af0190fa70984b8fca0.jpeg)

---

<div class="post-metadata">

作者： ![1寂静](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/1/c0e974/32.png) [@1寂静](https://forum.freemdict.com/u/1%E5%AF%82%E9%9D%99)\
发布日期： [2024 年4 月 28 日 10:22 UTC](https://forum.freemdict.com/t/topic/28437/3 "2024-04-28T10:22:22Z")

</div>

但是他已经用了正则来替换掉了，你查到的，只是看到结果，不能用在其c他词典中。。。。

---

<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 年4 月 29 日 00:36 UTC](https://forum.freemdict.com/t/topic/28437/4 "2024-04-29T00:36:21Z")

</div>

我建议楼主先看一点编程的入门书，试一下手，然后才问问题。

你现在问问题，连问题都问不清楚，别人不知道你真正想解决的问题是什么。别人回答了，你大概也看不懂。即使别人给了你现成的代码，你也用不起来。所以只是白忙。

[HTML，CSS，JS（JavaScript）入门书籍](https://forum.freemdict.com/t/topic/20070)

[Javascript 权威指南](https://forum.freemdict.com/t/topic/17602)

javascript  
changing color of the keywords of given sentence

> <https://stackoverflow.com/questions/65003084/changing-color-of-the-keywords-of-given-sentence>
