On 25.09.2017 17:20, Mailing Lists Mail daktapaal(_at_)gmail(_dot_)com wrote:
What I get is : if#xyz#abcbcd
What I was expecting / I want : if##xyz#abc#bcd#
Thing that is perticularly bothering me is abcbcd and not abc#bcd
My understanding about the translate() function is that the second param
is the list of chars you want to replace, the third param is the char
you want to replace with. SO I was hoping that
()''+-*$= will all be replaced with #
Use replace then e.g.
replace('if($xyz-(abc-bcd)', '[()''+\-*$=]', '#')
translate takes a replacement list, if that list is shorter than the
list of characters to be translated the characters are removed.
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--