Regex Character Sets
<<<< ^^^^^ >>>>

A character set is a wildcard represented by chars inside square brackets

Different forms of character sets:

A disjunct set like [aeiou], or...

A consecutive range of characters like [0-9], or ...

Both: [aeiou0-9] or ...

A negated set: [^A-Za-z0-9]

Brackets and contents replaced by SINGLE character, i.e. /\.mp[g23]$

<<<< ^^^^^ >>>>

Copyright (C) 2001 by Steve Litt, you can freely distribute unmodified copies if this copyright notice and disclaimer are intact.  This material originally appeared on Troubleshooters.Com.

This presentation has no warrantee, express or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. The entire risk as to the quality and performance of the presentation is with you. Neither the author nor those who show the slideshow are responsible for any damage caused by errors, omissions, or anything else relating to this slideshow.


Exit Slideshow