in reply to Regexp - exact matches

  1. What is $LookFor and why are you appending to it?
  2. In the second line, you escape the $... Update Thanks isotope, missed that they were double quotes... ; )

Please provide more of an explanation or more code.

Replies are listed 'Best First'.
Re: Re: Regexp - exact matches
by isotope (Deacon) on Jul 30, 2003 at 18:20 UTC
    Looks to me like $LookFor is a string to be used as the regular expression. In the second line, he's building it with the contents of $srch_host as an exact match, using double quotes, so for the ending anchor $ to be included literally he has to escape it. That said, I don't think he's included enough of the code to find where the problem lies.

    --isotope