Sun has asked for the wisdom of the Perl Monks concerning the following question:
Hi all
i am new to perl: Heard that perl is a excellent language for parsing... let me check it
data to gbsdff03dfif7 is data to HR620-Asdf2 data to HP650dfgd-Af452 is
and i my code is
($line =~ /to (.*?) is/i)
is not working , it matches only the middle string not the first and last
(Original content above, restored by davido. Updated content follows:)
Hi yes some wrong assumptions in the code. let me check it
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: new to perl : how to match ?
by davido (Cardinal) on Oct 28, 2005 at 06:17 UTC | |
by Sun (Initiate) on Oct 28, 2005 at 06:40 UTC | |
by davido (Cardinal) on Oct 28, 2005 at 06:49 UTC | |
by Sun (Initiate) on Oct 28, 2005 at 08:21 UTC | |
by McDarren (Abbot) on Oct 28, 2005 at 08:53 UTC | |
| |
|
Re: new to perl : how to match ?
by McDarren (Abbot) on Oct 28, 2005 at 06:28 UTC |