Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 多行高亮文本_Jquery_Regex_Annotations_Highlight - Fatal编程技术网

Jquery 多行高亮文本

Jquery 多行高亮文本,jquery,regex,annotations,highlight,Jquery,Regex,Annotations,Highlight,我尝试使用jquery突出显示文本 我遵循了这个小提琴解决方案: 搜索和突出显示不包含换行标记()标记的文本是一项工作 但如果文本包含标记。这个解决方案行不通 请帮帮我 谢谢 试着用 var term = "high(?:<br\s*/?>)?lighting"; var term=“高(?)?照明”; 请在标记中使用内联代码,而不是指向外部网站。尽量使问题独立,仅使用图片和外部链接进行澄清。当然,必须注意:

我尝试使用jquery突出显示文本

我遵循了这个小提琴解决方案:

搜索和突出显示不包含换行标记(

)标记的文本是一项工作

但如果文本包含

标记。这个解决方案行不通

请帮帮我

谢谢


试着用

var term = "high(?:<br\s*/?>)?lighting";
var term=“高(?)?照明”;

请在标记中使用内联代码,而不是指向外部网站。尽量使问题独立,仅使用图片和外部链接进行澄清。当然,必须注意: