|
Posted by windandwaves on 11/08/07 22:14
On Nov 7, 9:55 am, Good Man <he...@letsgo.com> wrote:
> windandwaves <nfranc...@gmail.com> wrote in news:1194381953.358772.178700
> @q3g2000prf.googlegroups.com:
>
> > Why is this so hard?
>
> > I can do a str_replace. That is easy. However, I do many of them AND
> > I want to make sure that one replacement does not override another...
>
> > e.g.
> > statement 1 could be: replace "cats" with "dogs"
> > statement 2 could be: replaced "do" with "did"
>
> > as you can see, this could turn "cats" into "didgs"
>
> > That is what is the hard part.
>
> then yes, go for regex so you can specify beginnings/ends of words as
> opposed to characters in a string
Hi
I thought that would be the way to go. I dont think I have enough
skills to write a fully-fledged regex for this. Would you have any
ideas?
Thank you
Nicolaas
Navigation:
[Reply to this message]
|