2006-11-07

一个正则表达式的解析

关键字: ruby,正则
引用
"Starts with lower case f, which is immediately followed by exactly one upper case letter, and optionally more junk after that, as long as there are no more lower case characters."

在Ruby中,可以这样匹配:
=>/^f[A-Z][^az]*$/
评论
update 2006-11-17
引用
引用
test
发表评论

您还没有登录,请登录后发表评论

iceskysl
搜索本博客
我的相册
6e4b1028-c838-4ae2-9808-316c7a60e315-thumb
111
共 1 张
最近加入圈子
存档
最新评论