Hi Experts,
In our flow we have a stirng which need to be searched and replaced with different string. So we had pub.String.replace to replace the string.
But now we have too many items/strings to be searched and replaced.
So using a replace function many times is not a better option.
We decided to implement hash table concept.
Could anyone please suggest us how to implemnt this search and replacing in hash table?
Any documentation available anywhere?
Thanks
Tong_Wang
(Tong Wang)
January 20, 2009, 1:23am
2
Not sure why you want to use hash table for this.
if just for storing the FromStr and ToStr pairs, yes, you should be able to use it, just write a few lines of java code (declare the harsh table there), with a setValue, getValue wrapper service.
vsu.7001
(vsu.7001)
January 29, 2009, 11:37pm
3
There’s also some built-in services in the pub.storage folder.
squarek2
(squarek *)
February 5, 2009, 10:06am
4
I think regular expressions can be used depending on the number of strings that needs to be replaced.