David --- Senior Programmer Analyst --- Wgo Wagner wrote: > I had to change as follows: > my $data = 'BlahBlahBlahBlah From: BlahsvilleDude > <[EMAIL PROTECTED]>BlahBBlahBBlah'; > > printf "bf:%-s\n", $data; > > $data =~ s/^.*<([^>]*)>.*$/$1/gs; > > printf "af:%-s\n", $data; > > but it does work though you need to use single quotes around the data > as it is coming in. If you can have the line feed in there, then you > will need the s to handle the possible line feed.
Hi Wags. This stuff is presumably coming from a file or something like that? It's highly unlikely that it's going to be hard-coded in the program, so there's no issue about interpolating strings. Cheers, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]