in reply to regexp parsing from a big string...
- Split $tempStr into an array of rows
- Have all of your desired keywords (user, password, etc.) as the keys of a hash
- Loop through the array of rows. If the first field of the line is a key in the hash, store/display the balance of the line