动态显示红色的特定字符: [英] specific chararacters in red colour dynamically:

查看:93
本文介绍了动态显示红色的特定字符:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我需要动态地用红色指定"_"之前的2个字符,无论字符在"_"之前和之后出现什么.
例如:附加根原因. 尽管我增加了"_"之前和之后的字符数,但此处的字符"ch"应为红色.

请提供建议.

Hi,

I need to specify the 2 characters before "_" in red color dynamically whatever may be the chracters appear before and after "_".
Eg:Attach_rootcause.
Here the character "ch" should be in red color though i increased the number of characters before and after "_".

Kindly advise.

推荐答案

本文 [^ ]可能会为您提供帮助.
This article[^] might help you.


这篇关于动态显示红色的特定字符:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆