Moved Pattern.compile() outside loop (duh!)