in reply to Re^2: Parsing a data field that is seperated by data/time entries
in thread Parsing a data field that is seperated by data/time entries
If you need to match the timestamp format to reliably know that you've found a comment boundary, you'll need to use a regex, as frodo72 illustrated in his example 3. Spell out as much as you need to to get a reliable boundary.my $whatIwant = substr($wholefield, rindex($wholefield, "\n[")+1);
No matter what you choose, it will be possible that one of the comments includes the pattern you look for. That's only a problem if it happens to be the last comment, in which case you'll end up with just the last portion of that comment instead of the whole thing.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Parsing a data field that is seperated by data/time entries
by TASdvlper (Monk) on Apr 14, 2005 at 19:38 UTC | |
by Roy Johnson (Monsignor) on Apr 14, 2005 at 19:46 UTC |