Re: replace string question

2005-05-23 Thread arjen
hmmm, yes i'm aware of the need to get more java-/actionscript capable... i'm using it for some other things that are much more complicated to do in lingo, but i don't master it yet..and i currently don't really have the time to get it in my fingers.. anyway, thanks for the tips. i'll have a

RE: replace string question

2005-05-23 Thread Thomas Higgins
> but i posted the question becuase i asumed there must be much more > efficient way to do it In addition to PregEx if you're in DMX'04 you could create a JavaScript syntax regular expression object and do all this a bit faster and "cleaner". Cheers, Tom Higgins - Technical Product Manager Macr

Re: replace string question

2005-05-23 Thread Daniel Nelson
Check out the free PregEx extra. Search and replace made easy and processor friendly. Regards, Daniel arjen wrote: thanks for you responses, in the meanwhile i wrote a handler myself, just to not waste time searching. but i posted the question becuase i asumed there must be much more effici

Re: replace string question

2005-05-23 Thread arjen
thanks for you responses, in the meanwhile i wrote a handler myself, just to not waste time searching. but i posted the question becuase i asumed there must be much more efficient way to do it, rather than creating repeatloops and walk through all paths. this can become very time/cpu consuming.

Re: replace string question

2005-05-23 Thread julian weaver
here's a version I wrote for mac - just add your prefixes for windows on replacePathForUnix me, trackpath replaceDelim = "/" if the environment.platform contains "Macintosh" then myPrefix = "/Volumes/" findDelim = ":" else --// windows myprefix = "" findDelim = "\" end

Re: replace string question

2005-05-23 Thread Irv Kalb
Below is a generic Search and Replace routine that I have been using for years. It allows for any length string using the "contains"and "offset" commands. I believe that this is faster than going character by character. But the real question is why do you have "hard coded" path names in you

replace string question

2005-05-23 Thread arjen
hi this must be so easy, but i can't find the answer anywhere; howto replace all occurences of a character in a string with another character? the time i wasted with searching i could have also spent with making a handler that does that, but there must be a much faster way of doing it than l