Le Sat, Jan 05, 2002 at 08:51:19AM +0800, Leon a dit le suivant: } } > If so, I suggest something like: } > $text =~ s/<RD>.*?<HR>//gs; } } * means zero or more instances; } ? means zero or one instances; } + means one or more instances; } } so what is the meaning of .*?
.. matches any type of input (character, numersl, space, etc.) * means zero or more instances, as noted above ? in the above would make it stop matching at the first <HR> rather than the last - Perl tends to be "greedy", so adding the ? will keep it from matching more than you wanted it to. It is optional but useful. -- Namaste, Kristin Kristin Anne Igaki Internal Engineering BlueMountain.com A division of ag.com www.bluemountain.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]