Christophe says: August 24, 2012 at 7:50 pm That???s funny, I hadn???t looked at my code in a while and I am not sure why I wrote it this way??? Anyway, the pipe means ???or???, and \s is a space or new line (which the dot alone does not cover). \1 is a backreference (repeating the tag name).