The bracket metacharacters and negation : Character Class « Regular Expression « Perl






The bracket metacharacters and negation

    
while(<DATA>){
    print if / [^123]0/
}
__DATA__
    101
    201
    301
    401
    501
    601

   
    
    
    
  








Related examples in the same category

1.Character Class: Alternative Characters
2.Character Class: Anchored Characters
3.Character Class: Miscellaneous Characters
4.Character Class: Remembered Characters
5.Character Class: Repeated Characters
6.Character Class: Whitespace Characters
7.Match any number of alphanumerics followed by a single space character
8.Match at least one alphanumeric followed by a single space character
9.Posix and Unicode Classes
10.The bracketed character class