RichTextBox文本替换 [英] RichTextBox Text Replacing

查看:78
本文介绍了RichTextBox文本替换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我在RichTextBox文本中输入了一些标签(即日期,名称等),并希望在打印时用这些标签替换这些标签



请为此提供解决方案。



谢谢

Hi,

I entered some tags in my RichTextBox Text(i.e. Date,Name etc) and want to replace those tags with their values at printing

please give the solution for this.

Thanks

推荐答案

这有多难? String.Replace() [ ^ ]


除了解决方案1之外,还有也可以使用 Regex.Replace() [ ^ ],如果您需要使用正则表达式。
In addition to Solution 1, it''s also possible to use Regex.Replace()[^], if you need to work with regular expressions.


这篇关于RichTextBox文本替换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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