Thanks<br><br>I will make some feature requests including some I came up with over night:<br>&nbsp;&nbsp; {s.subst,/regex/replace/flags}<br>&nbsp;&nbsp; {s.regex,/regex/}<br>&nbsp;&nbsp; avp_delete(&quot;$avp(s:name)/index&quot;)<br><br>Dave<br><br><div>

<span class="gmail_quote">On 12/14/07, <b class="gmail_sendername">Henning Westerholt</b> &lt;<a href="mailto:henning.westerholt@1und1.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">henning.westerholt@1und1.de
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thursday 13 December 2007, Dave Singer wrote:<br>&gt; I&#39;m a little confused. Are you saying there is a transformation {s.count}<br>&gt; that can be applied to avp&#39;s to get the number of items in an avp<br>&gt; list/stack?
<br>&gt; I don&#39;t see any documentation for one at the link that you sent me. I had<br>&gt; already scoured it looking for something to help me, but checked again in<br>&gt; case something had changed.<br>&gt; It sound more like you are saying that there is no such functionality and
<br>&gt; suggesting that I code/create a new transformation.<br><br>Hi Dave,<br><br>yes, i wanted to say something like that. :-) Just wanted to start a<br>discussion about the possibility of a new transformation function.
<br><br>&gt; Unfortunately my &quot;Programing&quot; experience is quite rusty, the last time I<br>&gt; looked at C/C++ was in College almost 15 years ago. Not to mention already<br>&gt; not enough time in a day to get done what I&#39;m supposed to do. Maybe some
<br>&gt; time in the future I/we will be able to contribute code to openser and/or<br>&gt; modules, but not now. We are pushing hard to have a quality sell able<br>&gt; product/service.<br>&gt; Or company is planning to contribute back to openser in several ways. When
<br>&gt; we get our servers setup and working, providing a stable, load-balanced,<br>&gt; scalable platform that our sales team can sell our services with<br>&gt; confidence, we are planning to post our openser.cfg files highly commented,
<br>&gt; along with database structure changes(added tables, views, colums,<br>&gt; indexes...), example data, and a way to manage the data.<br><br>Sounds great!<br><br>&gt; So for now (assuming you are saying there isn&#39;t something there now) I&#39;ll
<br>&gt; have to use what is currently available and hope that someone else with<br>&gt; more experience and time finds these features valuable enough to implement<br>&gt; them. I like the idea of a transformation but maybe like this:
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;$var(step_count) = $(avp(s:list){ary.count})<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;while ( $var(step_count) != 0 ) {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $var(working_var) = $(avp(s:list){ary.index,$var(step_count)});<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # do some stuff on this reverse process list.
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # also we are not deleting list items to get to other list items.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&gt;&nbsp;&nbsp;and later used like...<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;$var(step_count) = $(di{ary.count}); # if $di was a list/array of all<br>&gt; the Diversion headers
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;# same as in avp example above with other PV that could be lists/arrays<br>&gt;<br>&gt; Also as the original email for this conversation stated, we need a<br>&gt; {s.count,seperator} to compliment {s.select,index,seperator}
<br><br>You could open a feature request on the tracker [1] with the proposed<br>enchancements.<br><br>Cheers,<br><br>Henning<br><br><br>[1] <a href="https://sourceforge.net/tracker/?group_id=139143&amp;atid=743023" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
https://sourceforge.net/tracker/?group_id=139143&amp;atid=743023
</a><br></blockquote></div><br>