Franklin wrote:
> Hello:
>
> I want to extract the digit from a line of text. For exmple, for a
> text line: TSC2101Net, how can I write a script to extract 2101 and
> print it?
Use a regex to capture a series of digits:
$_ = 'TSC2101Net';
my ($num) = /(\d+)/;
print "Found $num\n" if def
Franklin wrote:
> Hello:
> I want to extract the digit from a line of text. For exmple, for a
> text line: TSC2101Net, how can I write a script to extract 2101 and
> print it?
> Thank you very much in advance!
> Bestwishes
> Franklin
>
>
>
>
>
Title: Message
-Original Message-From: Franklin
[mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 12:01
PMTo: [EMAIL PROTECTED]Subject: how to extract digit
from a line in Perl
Hello:
I want to extract the digit from a
On 14 Jul 2004, at 11:00, Franklin wrote:
I want to extract the digit from a line of text. For exmple, for a
text line: TSC2101Net, how can I write a script to extract 2101 and
print it?
There are number of techniques that spring to mind, the obvious being
regular expressions and substring. The
Hello:
I want to extract the digit from a line of text. For exmple, for a text line: TSC2101Net, how can I write a script to extract 2101 and print it?
Thank you very much in advance!
Bestwishes
Franklin
IncrediMail - Emai