Posted by Chris on 02/11/05 06:58
Because it's parsing $WRW as a string, because of the double quotes. so
you would need to do it like this:
quotemeta('pat:1$WRW')
to not let it parse any variables
or
quotemeta("pat:1\$WRW")
to not parse that particular variable
Steve Kaufman wrote:
>Why does
> quotemeta("pat:1$WRW")
>return
> pat:1
>instead of
> pat:1\$WRW
>
>What am I misunderstanding about quotemeta function?
>
>
>
Navigation:
[Reply to this message]
|