should do the trick. If no one else ever touches the file, you can get away with eliminating with \s* on either side, but I figure they don't hurt, on the off chance someone brings the data file into an editor at some point.$found = 1 if /^\s*\Q$student\E\s+\Q$studentAge\E\s*$/
In reply to Re: Re: Re: regex issue
by optimist
in thread regex issue
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |