in reply to Re^2: RegEx ignoring intervening characters?
in thread RegEx ignoring intervening characters?
if the $x pattern I am looking for is from uc(chomp($x = <STDIN>)), would I just need to use split, inserting the ^A-Z* after every character? would that work?Yes, you would do this:
my $x = <STDIN>; chomp $x; $x = uc($x); my $regex = join('[^A-Z]*', split //, $x);
|
|---|