Single pattern searching method