Convert a list of word/terms into their Regexp representation

view story

http://www.unix.com – Ok this might sound pretty weird but here is the request. Running on a linux system in bash or Perl (i really don't know perl but the end user has a few pearl script already) Start File looks something like this (4000 entries) TEST PLAN T//TF T-TF TEST (T) Hacker ... I am thinking about loading each line then stepping through character by character into a regexp expression that covers Upper and lower cases. So the first line output should be: [tT][eE][sS][tT][[:space:]][pP][lL][aA][nN] ANY help would be appreciated, this is not for my section but a buddy in another section. (HowTos)