使用Regex.replace方法将$ {Name)替换为'Rahul' [英] replacing $(Name) with 'Rahul' using Regex.replace method

查看:142
本文介绍了使用Regex.replace方法将$ {Name)替换为'Rahul'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想使用正则表达式的regex.replace方法将$(Name)替换为``Rahul''.
正确的正则表达式模式应该是什么.

谢谢

Hi,
I want to replace $(Name) with ''Rahul'' using regex.replace method of Regular expression.
What should be the right regular expression pattern to do it.

Thanks

推荐答案

(名称)带"Rahul",使用正则表达式的regex.replace方法.
正确的正则表达式模式应该是什么.

谢谢
(Name) with ''Rahul'' using regex.replace method of Regular expression.
What should be the right regular expression pattern to do it.

Thanks



(名称)的正则表达式为:
(Name) is:
(\


这篇关于使用Regex.replace方法将$ {Name)替换为'Rahul'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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