Probably, it is simple but honestly I am not able to solve this
problem.
I am trying to use eregi_replace() function to substitute some strings
in my input.
I would like to substitute the "ac" substring when it is a single word
(i.e. "ac" or "ac " but not "ace" or "mace").
I tried something like:
ereg_replace("a c[^[:alpha:]]*","subst...",$ inputstring));
But it fails...
I read the regex help and online documentation but I was not able to
figure how to obtain it...
Please help!
Thanks,
Massimo
--
problem.
I am trying to use eregi_replace() function to substitute some strings
in my input.
I would like to substitute the "ac" substring when it is a single word
(i.e. "ac" or "ac " but not "ace" or "mace").
I tried something like:
ereg_replace("a c[^[:alpha:]]*","subst...",$ inputstring));
But it fails...
I read the regex help and online documentation but I was not able to
figure how to obtain it...
Please help!
Thanks,
Massimo
--
Comment