美文网首页
【The Java™ Tutorials】【Regular Ex

【The Java™ Tutorials】【Regular Ex

作者: Ppian | 来源:发表于2018-03-23 16:21 被阅读0次
    Construct Description
    [abc] a, b, or c (simple class)
    [^abc] Any character except a, b, or c (negation)
    [a-zA-Z] a through z, or A through Z, inclusive (range)
    [a-d[m-p]] a through d, or m through p: [a-dm-p] (union)
    [a-z&&[def]] d, e, or f (intersection)
    [a-z&&[^bc]] a through z, except for b and c: [ad-z] (subtraction)
    [a-z&&[^m-p]] a through z, and not m through p: [a-lq-z] (subtraction)

    相关文章

      网友评论

          本文标题:【The Java™ Tutorials】【Regular Ex

          本文链接:https://www.haomeiwen.com/subject/ubiwvxtx.html