[SR-Users] PVs in Regular Expression Transformations

Daniel-Constantin Mierla miconda at gmail.com
Tue Apr 20 18:38:17 CEST 2010



On 4/20/10 6:30 PM, Juha Heinanen wrote:
> Daniel-Constantin Mierla writes:
>
>   >  should be fixed now. Let me know if works fine for you.
>
> the same test now worked ok.  i'll make more tests later.
>
> now that you have implemented strips, how about the opposite, i.e., head
> and tail?
>    

Does not make lot of sense in my opinion since it is very easy to do 
with substr:

head: {s.substr, 0, len}
tail: {s.substr, -len, 0}

striptail requied computation of the length and use of that in substr, 
making it a bit too complex.

Cheers,
Daniel


-- 
Daniel-Constantin Mierla * http://www.asipto.com/ * 
http://twitter.com/miconda * 
http://www.linkedin.com/in/danielconstantinmierla




More information about the sr-users mailing list