Looking at your code, it's hard to tell which of several different things you're trying to do. Can you explain what you're trying to do and why in more detail?
Comment on Re: One line assigment statement with regex match
I have an array of literal strings, words. as I read through a file i want to check the current line against my array of terms. if there is a match I want to assign that match to a varaible. I was wondering if I could do that in one statement.