Using Scalar Variables in Regular Expressions

in Perl Tips, Regular Expressions
by William Ward on August 4, 2004 3:20 pm

If you know how to use regular expressions you will know about special codes like ^, $, and \w which can be used to indicate position or certain classes of characters in the string. But in fact, anything that works in a double-quoted string can be used in a regular expression!

(more…)