in reply to How can i have the titles and the prices?

An HTML parser is advisable. However, if you insist on using regexes (which can fail in many ways) two things:

  1. Make them non-greedy by using (.*?). Otherwise, they are trying to match the longest possible string.
  2. Instead of using dot, use a character class excluding the next character after the string you are looking for. So instead of title="(.*)" use title="([^"]*)". This way you get everything up to the next quote.