P
Prabh
Hi,
Could anyone tell me how to do this in Java, please.
I need to extract a portion of a file.
File:
================================================
line1
line2
line3
Property1 = value1\
value2\
value3
line4
line5
================================================
I'd like to extract the "Property-value" portion.
Could someone give me any pointers, please.
For what its worth, I'd do this Perl as:
while (<>) {
print if (/^Property1(.*)$/ .. /^$/) =~ /^\d+$/;
}
Thanks,
Prabh
Could anyone tell me how to do this in Java, please.
I need to extract a portion of a file.
File:
================================================
line1
line2
line3
Property1 = value1\
value2\
value3
line4
line5
================================================
I'd like to extract the "Property-value" portion.
Could someone give me any pointers, please.
For what its worth, I'd do this Perl as:
while (<>) {
print if (/^Property1(.*)$/ .. /^$/) =~ /^\d+$/;
}
Thanks,
Prabh