Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Help with Str replace

6:04 am on Dec 15, 2010 (gmt 0)

Full Member

10+ Year Member

joined:June 16, 2004
votes: 0

i have the following 2 arrays that i am looking to replace variables from. However my problem is how to tell to not replace variables that are in %XX format. Right now 0 will get replaced with %30, and this will then again get replaced with %%330 (replaced 3 with %33). Any help greatly appreciated. Thanks




[edited by: coopster at 2:03 pm (utc) on Dec 15, 2010]
[edit reason] fixed sidescroll [/edit]

3:47 pm on Dec 15, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 15, 2003
votes: 27

My advice would be to simply create a function that will translate the data variables one at a time, rather than trying to create an elegant one-line wonder.