字符串拆分的正则表达式.. [英] Regular-Expression For String Splitting..
本文介绍了字符串拆分的正则表达式..的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想要一个正则表达式,例如任何给定字符串1000美元
字符串可能包含
text $ 1000 text
或
text $ 1,000 text
或
text 1,000 $ text
或
text 1000 $ text
或
text $ 1000 text
或任何文字组合和$ 1000 / $ 10,000
$可能会在一个字符串中多次出现,但我只想要1000美元或$ +数字
任何建议或解决方案请
解决方案
1000来自任何给定的字符串
字符串可能包含
text
1000 text
或
text
1,000 text
或
text 1,000
I want a regular expression that give me e.g. $1000 from any given string
string may contain
text $1000 text
Or
text $1,000 text
or
text 1,000$ text
or
text 1000$ text
or
text$1000 text
or any combination of text and $1000/$10,000
$ may appear more than once in a string but i just want $1000 or $+number
any suggestions or solution please
解决方案
1000 from any given string
string may contain
text
1000 text
Or
text
1,000 text
or
text 1,000
这篇关于字符串拆分的正则表达式..的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文