
japhy
Enthusiast
/ Moderator
May 18, 2001, 1:53 PM
Post #2 of 3
(1199 views)
|
|
Re: Substituting, replace with var
[In reply to]
|
Can't Post
|
|
You'll have to evaluate the right-hand side of the s///: First, I got rid of the useless first set of ()'s. Then, I changed .* to .*?, since using .* will match "a>> and <<b" in "<<a>> and <<b>>". Then, I fixed the right side to evaluated as a string, and then again as code. It should work for you. Jeff "japhy" Pinyan -- accomplished hacker, teacher, lecturer, and author
|