Yes, a regexp could be an approach this problem. So could split.
Searching the monastery on these topics would be fruitful also.
This sounds a lot like homework. You'll find you get more specific answers when you demonstrate you've actually tried writing some code and ask specific questions about specific problems you've encountered.
In reply to Re: select line from file
by Zed_Lopez
in thread select line from file
by help
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |