Does my regexp actually work? I am sort of surprised. I usually can't get regexps right on the first try. On Thu, 26 Jan 2006, oscar at devel.lifetype.net wrote: > + $regexp = '/Username="?([^"]+)"?(,|$)/'; > + preg_match( $regexp, $header, $matches ); > + $this->userName = $matches[1];