字符串上的正则表达式 [英] Regular expression on a string
本文介绍了字符串上的正则表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要对字符串执行正则表达式.正则表达式语句和输入字符串都可以动态加载到程序中.
例如:
regx表达式:[^ abZ]
字符串可以是:balance.
基于regx,需要对字符串进行转换.
此操作将不同于validate和匹配字符.
在此先感谢
hi ,
I need to perform regular expression on a string. Both regular expression statement and input string can be dynamically loaded into the program.
for example :
regx expression : [^abZ]
string could be : balance .
based on the regx the string need to be transformed.
this operation will not be like validation , and matching characters.
thanks in advance
推荐答案
Dude,
检查以下链接
http://geekswithblogs.net/brcraju/articles/235.aspx [
Dude,
Check the following link
http://geekswithblogs.net/brcraju/articles/235.aspx[^]
这篇关于字符串上的正则表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文