#!/usr/bin/perl -l use warnings; use strict; undef $/; my $txt = <>; (my $number) = $txt =~ /mailbox (\d{11})/; (my $from) = $txt =~ /From: (.*?)\n/; print "$number -> $from\n";
In reply to Re: A little regex help please!
by explorer
in thread A little regex help please!
by jdtoronto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |