Combine [] with + to match a sequence of characters of any length. : bracket « Regular Expression « Perl






Combine [] with + to match a sequence of characters of any length.

    

/d[eE]+f/

This matches all of the following:

def
dEf
deef
dEef
dEEEeeeEef

   
    
    
    
  








Related examples in the same category

1.Square brackets ([ and ]) delimits a range of characters.
2.The [] special characters enable you to define patterns that match one of a group of alternatives.
3.The Bracketed Character Class