Dear Bob,

This is a job for regular expressions:

put "[0][0][9]item1[0][0][0][6]item2[0]item3" into tstr
put replacetext(tstr, "(\[[0-9]\])+", tab)
get you:     item1    item2    item3

[0-9]         Means any number between 0-9
\[ and \[ Because [ and ] are characters used to define options (as the above shows), you need to escape it
(something)+  One or more of the same thing.

If you can have any number of digits in between square brackets, then use
[0-9]+

Best,
Marielle

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to