in reply to extract substring between token a and token b
#!/usr/bin/perl $text = "<!--begin-->this is a line of text<!--end--><!--begin-->anoth +er one<!--end-->"; @lines = $text =~ /<\!--begin-->(.*?)<\!--end-->/g; foreach (@lines) { print $_ . "\n"; }
Peace!
LassiLantar
|
|---|