Exclude a Set of Literal Characters ( )

team bbl


Exclude a Set of Literal Characters ( [^ ] )

You can put a set of literal characters inside square brackets, proceeded by a circumflex (^). The pattern matches only if none of the set of characters is found.

Regular Expression

Match

Not a Match

a[^bcd]ef

axef, akef

abef, acef, adef, axkef

a[^b-d]ef

axef, akef

abef, acef, adef, axkef

file[^1-2][0-9]?

file3, file45

file, file1, file10


    team bbl



    Spring Into Linux
    Spring Into Linux
    ISBN: 0131853546
    EAN: 2147483647
    Year: 2005
    Pages: 362
    Authors: Janet Valade

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net