Computer science: regular expressions w/ Perl

Perl tutoring: the tutor comments about square brackets in Perl regex.

Perl regexmatch string
/[beat24]/string containing any of b,e,a,t,2,or 4.
/beat24/string containing the exact sequence beat24

Source:

McGrath, Mike. Perl in easy steps. Southam: Computer Step, 2004.

Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.

Leave a Reply