On Oct 27, [EMAIL PROTECTED] ([EMAIL PROTECTED]:
Brian: The regular expression: Brian: Brian: m/^<(><)*>$/ Brian: Brian: will ensure that it starts with < and ends with > and anything in between Brian: will be "><" which I think should do the trick. That logic is pretty hairy Brian: though and I could be missing something.
Wouldnt m/[<>]/g literally match <> and not <characters>?
Anything inside [ and ] is a character class and will match either '<' or '>' anywhere in the string.
Why wouldnt it be m/[<.+>]/g ?
That will match the characters '<' or '.' or '+' or '>'.
John -- use Perl; program fulfillment
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>