Re: extraction of info from fixed position
- From: Ben Morrow <ben@xxxxxxxxxxxx>
- Date: Sat, 16 Feb 2008 16:24:39 +0000
Quoth "Rose" <rose@xxxxxxxx>:
Instead of specifying in detail (e.g. d+d+...) in a regular expression, is
it possible to specify some fixed numbers for perl to extract information,
in this example, S, 95 from line 1; 'space',42 from line2 and 'T',156 from
line3 in the following 3 lines?
46 51 V S S- 0 0 95 -2,-0.9 -7,-0.2 -6,-0.2
2,-0.1 -0.899 75.7-167.1-103.3 112.1 10.3 5.4 11.8
If I've understood you correctly, that's what substr is for.
Ben
.
- Follow-Ups:
- Re: extraction of info from fixed position
- From: Rose
- Re: extraction of info from fixed position
- References:
- extraction of info from fixed position
- From: Rose
- extraction of info from fixed position
- Prev by Date: Re: a newbie encounters difficulties in using module
- Next by Date: use strings for xticklabels
- Previous by thread: extraction of info from fixed position
- Next by thread: Re: extraction of info from fixed position
- Index(es):
Relevant Pages
|