Nexus Weblogging
ChinaonRails
You are here ChinaonRails > 网站 > > textmonster红宝石版

bd7lx


58.278%

disconnected
登录后回复主题 | 跳到回复

textmonster红宝石版

... by bd7lx ... 8 月 8 天前 ... 90 次点击

tM = "The first number is foo123, the second number is bar456, and the third number is baz789.".textMonster('[a-z0-9]+').textMonster('[0-9]+')

正则表达式返回

"foo123", "bar456", and "baz789"
第二个结果 "123", "456", and "789"

可以是String 或 Arrray

http://markchristian.org/projects/textmonster/

目前这个主题还没有回复,或许你可以帮楼主加盖一层?

在回复之前你需要先进行登录
电子邮件或昵称
密码
© 2007 A Jesse Cai Production   -   About   -   京ICP备07020911号
a site powered by Project Babel