I'm a Perl Novice, and I have a problem with a regex. I wanted my program to extract text from a file (which holds the content of a web page) and find a delimited string.
open(FILE1, "<raw.txt"); $text = <FILE2>; if ($text =~ /birthdate(.*?)zodiac/i) { my $birthdate = $1; } open(FILE2, ">>births.txt"); print FILE2 $birthdate;
What am I doing wrong? I know this is very basic, but I've been looking for an answer and reading about regexes, to no avail.
Cheerio, MarcinIn reply to Newbie regex question by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |