想要一个正则表达式,它将找到一个用双引号括起来并以$开头的字符串。 [英] want a regular expression which will find a string which is enclosed in double quotes and starts with $.
本文介绍了想要一个正则表达式,它将找到一个用双引号括起来并以$开头的字符串。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想要一个正则表达式,它会找到一个用双引号括起来并以$开头的字符串。
示例:
输入:$ abcd(abcd可以是任何字符串)
输出:abcd
输入可以是字符串数组或包含多个输入组合的字符串($ abcd)。
获得输出后我想用其他单词替换该字符串。
请帮助我。
谢谢。
I want a regular expression which will find a string which is enclosed in double quotes and starts with $.
Example:
input : "$abcd" ("abcd" can any string)
output : abcd
input can be array of string or a string which contains multiple combination of input ("$abcd").
After getting output i want to replace that string with other word.
Please help me on this.
Thank you.
推荐答案
。
示例:
输入:
.
Example:
input : "
abcd (abcd可以任意字符串)
输出:abcd
输入可以是字符串数组或包含多个输入组合的字符串(
abcd" ("abcd" can any string)
output : abcd
input can be array of string or a string which contains multiple combination of input ("
abcd)。
获得输出后我想用其他单词替换该字符串。
请帮帮我。
谢谢。
abcd").
After getting output i want to replace that string with other word.
Please help me on this.
Thank you.
这篇关于想要一个正则表达式,它将找到一个用双引号括起来并以$开头的字符串。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文