Cap0 Posted July 22, 2007 Posted July 22, 2007 how would i replace a string when found second occurence?ex:hello there hello there hello therewould turn out to be:hello there REPLACED there hello there
Developers Jos Posted July 22, 2007 Developers Posted July 22, 2007 something like this ?: $test = "hello there hello there hello there" $test = StringReplace ($test, "hello", "QXQX" , 1) $test = StringReplace ($test, "hello", "REPLACE" , 1) $test = StringReplace ($test, "QXQX", "hello", 1) SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now