Subject: Remove prefix: Other function instead substring-after("mypref:som evar",':') ?
From: "Matt Adams" <mattad@xxxxxxxxx>
Date: Fri, 03 Dec 2004 15:40:23 +0100
|
I want to remove the prefix of a variable (if it exists).
Ok, I could use the function
substring-after("$myvar",':')
for this task but I feel that there is a special built-in function for
that purpose. Which function should I use?
Obviously if the variable has no prefix then the variable should be returned:
Sample:
removepref("mypref:somevar") -> somevar
removepref("somevar") -> somevar
Matt
--
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm
|