Java 正则表达式最大,最小匹配问题

无标题文档
最大匹配模式X?     X, once or not at all

X*     X, zero or more times

X+     X, one or more times

X{n}     X, exactly n times

X{n,}     X, at least n times

X{n,m}     X, at least n but not more than m times

最小匹配模式X??     X, once or not at all

X*?     X, zero or more times

X+?     X, one or more times

X{n}?     X, exactly n times

X{n,}?      X, at least n times

X{n,m}?     X, at least n but not more than m times

posted on 2011-08-16 23:17  linw  阅读(1508)  评论(0)    收藏  举报

导航