Yes, I am using a real sitemap, at http://www.pokeri.com/sitemap.xml I have tested the regexp, and if it is like this: $reg_exp = '#<(\w+)[^>]*>(.*?)</\1>#s'; It does not work, it matches zero times. However, if I remove the backreference: $reg_exp = '#<(\w+)[^>]*>(.*?)</url>#s'; It matches the data...