On 09/21/2010 04:47 PM, dotnetdub wrote:
I also looked at using re.subst on $pU but can't
get it to work.
What is the best way to achieve what I'm trying to do?
I would extract a substring based on length. Intermediate (first)
variable 'pu_len' is required because transformations cannot be nested:
$var(pu_len) = $(pU{s.len}) - 1;
$var(new_pi) = $(pU{s.substr,1,$var(pu_len)});
append_hf("Remote-Party_ID: ...$var(new_pi)...");
--
Alex Balashov - Principal
Evariste Systems LLC
1170 Peachtree Street
12th Floor, Suite 1200
Atlanta, GA 30309
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web:
http://www.evaristesys.com/