zsdc wrote:
Petri Rautakoski wrote:
I'm making a text replace and my text to search includes a
metacharacter (.
The text to be searched has been stored in a scalar for example
$search. The text where the search will be made has been stored for
example in a scalar $text. Here is what I'm doing:
Petri Rautakoski wrote:
I'm making a text replace and my text to search includes a metacharacter (.
The text to be searched has been stored in a scalar for example $search.
The text where the search will be made has been stored for example in a scalar
$text. Here is what I'm doing:
$search = "fo
Petri Rautakoski wrote:
>
> Hi!
Hello,
> I'm making a text replace and my text to search includes a metacharacter (.
> The text to be searched has been stored in a scalar for example $search.
> The text where the search will be made has been stored for example in a scalar
> $text. Here is what I
I already tried that, but it didn't work for me, don't know why.
The \Q$pattern\E worked so my problem is solved.
Petri
> Petri Rautakoski wrote:
>
> >
> > $text =~ s|for example \(this\)|$toBeReplaced|;
> >
> > works fine, but how can I backslash the metacharacters in a scalar?
>
> Lookup "q
Petri Rautakoski wrote:
$text =~ s|for example \(this\)|$toBeReplaced|;
works fine, but how can I backslash the metacharacters in a scalar?
Lookup "quotemeta"
qr//;
-Bill-
__Sx__
http://youve-reached-the.endoftheinternet.org/
--
To unsubscribe, e-mail: [E
On 03/04/04 02:19, Petri Rautakoski wrote:
Hi!
I'm making a text replace and my text to search includes a metacharacter (.
The text to be searched has been stored in a scalar for example $search.
The text where the search will be made has been stored for example in a scalar
$text. Here is what I