hey guys,
another regexp problem which i'm probably not good at here goes
my text file has this
if u see it's like 2 paragraphs
i need to match the paragraphs as u can see each paragraph starts with "1 TB" and end with "2 TB" how can i match the one paragraph?
previously i was using this to match but this one only go through one line
how can i make it match a paragraph?
[CODE=perl]
foreach $data1 (@$data)
{
chomp ($data1);
if ($data1 =~ /1 TBHLR.+word/){ ## i replace the word with anything i wanna match
[/CODE]
another regexp problem which i'm probably not good at here goes
my text file has this
Code:
[B]/* 1 TB VTP-1 SESSION=01547 USERID STARTED 2008-05-13 09:46:11 */ I AM A GIRL /* 3 SESSION=01547 USERID 2008-05-13 09:46:12 */ /* 4c COMMAND EXECUTED */ /* 4c SESSION=01547 USERID=SASTST 2008-05-13 09:46:12 */ /* 2 TB HLRi VTP-1 SESSION=01547 USERID ENDED 2008-05-13 09:47:12 */ /* 1 TB VTP-1 SESSION=01547 USERID STARTED 2008-05-13 09:46:11 */ I AM A BOY /* 3 SESSION=01547 USERID 2008-05-13 09:46:12 */ /* 4c COMMAND EXECUTED */ /* 2 TB HLRi VTP-1 SESSION=01547 USERID ENDED 2008-05-13 09:47:12 */[/B]
i need to match the paragraphs as u can see each paragraph starts with "1 TB" and end with "2 TB" how can i match the one paragraph?
previously i was using this to match but this one only go through one line
how can i make it match a paragraph?
[CODE=perl]
foreach $data1 (@$data)
{
chomp ($data1);
if ($data1 =~ /1 TBHLR.+word/){ ## i replace the word with anything i wanna match
[/CODE]
Comment