Computer science: regular expressions w/ Perl
Perl tutoring: the tutor comments about square brackets in Perl regex.
| Perl regex | match 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
You must be logged in to post a comment.