HRegex,HPattern: Fixed compilation and searching.