in reply to Searching a sequence of tags using regex
You can't use the increment operator in a regex like that. Perl thinks you're trying to use the regex "one or more" match quantifier.
If you're looking for FN followed by a digit, can't you just do something like:
/<FN\d+>(.+)\n/
In fact your whole code can probably be replaced with:
push @note, /<FN\d+>(.+)\n/g;
Or (if @note starts off empty):
@note = /<FN\d+>(.+)\n/g;
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
|
|---|