Link to home
Start Free TrialLog in
Avatar of Vlearns
Vlearns

asked on

php regular expressions

Hi

I have a perl expression which reads

$l =~ s/^V\#REPLACEME^X^Y^W/$somevariable/

can you tell me if  in php

ereg_replace("(.*)^V\#REPLACEME^X^Y^W(.*)", $replacestring, $originaldata)

is the right way of writing the same regex?

thanks in advance

ASKER CERTIFIED SOLUTION
Avatar of maUru
maUru

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Vlearns
Vlearns

ASKER

thanks a million