 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/ | | | | |
|