Originally posted by Nicholas Cheung:
[QB]Assume the following is the record format:
For example, we have the following records:
If you happen to be certain that NAME always occurs as the first field, then whey don't you use a (^) anchor in your regex that will anchor the pattern to match only at the beginning of string ?
Originally posted by Jeroen Wenting:
A better alternative to putting a load of constants in an interface is putting them all in a class (might even be possible to make it abstract, I'd have to check) as static final members.
Originally posted by Pradeep Bhat:
What about the menory requirements ? I have used Forte in the past and it is memory hungry.
Originally posted by Anders Olsen:
This solution however only works because no files in the directory have package statements.