正则表达式,用于从字符串中检索数据 [英] Regular Expression to retrieve data from a string
本文介绍了正则表达式,用于从字符串中检索数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
$MyFunction1(100,myVariable)
我应如何将上述字符串解析为
1)功能名称
$ Myfunction1
2)第一个参数100(可以是任何数值)
3)变量名称
how shall i parse the above string to
1) the fucntion name
$Myfunction1
2)the first parameter 100( it canbe any numerical value)
3)the variable name
推荐答案
MyFunction1( 100 ,myVariable)
MyFunction1(100,myVariable)
我应如何将上述字符串解析为
1)功能名称
how shall i parse the above string to
1) the fucntion name
Myfunction1
2)第一个参数100(可以是任何数值)
3)变量名
Myfunction1
2)the first parameter 100( it canbe any numerical value)
3)the variable name
在这里,
^ \
Here it is,
^\
这篇关于正则表达式,用于从字符串中检索数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文