*Ignore the response in the if statement. That was from an earlier program and I Just realized that I haven't updated it to say "Your string has zero or more \s and zero or more *s"#!/usr/bin/perl -w use strict ; while (<>) { if ($_ = /\\*\**/) { print "Your string has at least one a and any number of bs.\n" + ; last ; } else { print "Your string does not match.\n" ; last ; } }
In reply to Regular expression queston by Socrates440
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |