如何为字符串创建Regex模式 [英] How do I create a pattern for Regex for a string
本文介绍了如何为字符串创建Regex模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
i想问一下正则表达式模式,
这个字符串的例子是:这是好的$ AAAA或它可以这是如此好AAAA和$ BBBB
在该示例中,我想要检索并更改$ AAAA和$ BBBB到一个链接,
和链接格式是http://webname/name.aspx?name = AAAA或name = BBBB
谢谢。
hello everyone,
i want to ask about a regex pattern,
the example of the string is : "This is So Good $AAAA" or it can be "This is so Good $AAAA & $BBBB"
in that example, i want to retrieve and change the $AAAA and $BBBB to an link,
and the link format is http://webname/name.aspx?name=AAAA or name=BBBB
thanks.
推荐答案
AAAA或者它可以是这太好了
AAAA" or it can be "This is so Good
AAAA&
>
BBBB
在该示例中,我想检索并更改
BBBB"
in that example, i want to retrieve and change the
这篇关于如何为字符串创建Regex模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文