in reply to Want to get regexp list from file
I assume you want your program to do more than just regexp'ing some file, but if not, why not just go with sed
Probably faster than your script and extrememly useful :)