Hi,
I have a scalar variable $x whose value is "a(b"
I am trying to replace the paranthesis with a backslash followed by
parenthesis, I mean, ( to \(
$x =~ s/\(/\\(/g;
However this is making $x as "a\\(b" which is not what I want.
Can somebody please help me with the regular expression here?
Murali wrote:
Hi,
Hello,
I have a scalar variable $x whose value is "a(b"
I am trying to replace the paranthesis with a backslash followed by
parenthesis, I mean, ( to \(
$x =~ s/\(/\\(/g;
However this is making $x as "a\\(b" which is not what I want.
Can somebody please help me with the
Murali wrote:
> Hi,
Hello,
> I have a scalar variable $x whose value is "a(b"
>
> I am trying to replace the paranthesis with a backslash followed by
> parenthesis, I mean, ( to \(
>
> $x =~ s/\(/\\(/g;
>
> However this is making $x as "a\\(b" which is not what I want.
>
> Can somebody please he
On Jan 2, 2008 11:11 PM, Murali <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a scalar variable $x whose value is "a(b"
>
> I am trying to replace the paranthesis with a backslash followed by
> parenthesis, I mean, ( to \(
>
> $x =~ s/\(/\\(/g;
>
> However this is making $x as "a\\(b" which is not wh
On Jan 3, 6:32 am, [EMAIL PROTECTED] (Chas. Owens) wrote:
> On Jan 2, 2008 11:11 PM, Murali <[EMAIL PROTECTED]> wrote:> Hi,
>
> > I have a scalar variable $x whose value is "a(b"
>
> > I am trying to replace the paranthesis with a backslash followed by
> > parenthesis, I mean, ( to \(
>
> > $x =~ s