Hi ant,
Are you looking something like this?
my (@value) = $line =~ m|<CS_REFCLT>(\d+)</CS_REFCLT>|g; or my (@value) = $line =~ m|<CS_REFCLT>((?:(?!</CS_REFCLT>).)*)</CS_REFCL +T>|g;
Also take a look at perlre.
Prasad
In reply to Re: Accessing data between two tags
by prasadbabu
in thread Accessing data between two tags
by ant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |