Thi small program will explain how it can be done :
#! /opt/bin/perl5 -w
$str = 'This contains a number of (<FOO> and <BAR>) <Angle> ... <Brackets>';
$str =~ s/<.*?>/<>/g;
print "$str\n";
This program will remove all characters between < and >.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
George Pereira
CMIE
11, Apple Heritage,
54-C, Andheri-Kurla Rd.,
Andheri (E), Bombay 400093
Tel: 8219595
Fax: 8219696
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
On Mon, 20 Aug 2001, Merritt Krakowitzer wrote:
> Im not sure if this is possible but i want to delete all chars inbeteen
> < and > so if i had <FOOBAR> id like to delete it,
> Here an example of the best way i can figure out how to do it :)
>
> $string =~ s/\<.\>|\<..\>|\<...\>|\<....\>|\<......\>//
>
> so I'm looking for a shorter way, I cant find any wildcards that will
> match more than one char.
>
> Hope thats makes some sense.
>
> Cheers
> Merritt
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]