in reply to Regular Expression

/^(\w+) (\w+)\;/; print $2;
Never use $2 without checking the success of the prior match. If the match fails, you'll get a previous $2, which could even lead to security holes.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.