> How fast. It works great. Thanks!
>

This was pretty easy.  Since v[i] really does get translated into the 
text vec.get(v,i) internally, it was not much more to code than 
replacing the vec.get with regex.matchg.

There are some restrictions for now.  If v is a vector of strings, you 
_can match_ with v[i][regex], but you _cannot replace_ with
v[i][regex]=expr
for now.  I will look at fixing this in 4.6.  

On a related note, you and maybe one or two other people might wonder 
whether, since you can say (any_string_expr)[match], you can also say
(vec.createfromlines(var))[index]
The answer is, yes, you can, but you probably should not, since 
PowerPro does not release the temporary vector in this case.  I will 
look at fixing this in 4.6.  Its just a matter of implementing the 
same technique as COM plugin, but I did not want to risk breaking 
vectors (again) for now.  (Of course, you can always use line or word 
fuctions instead of creating a vector, which will be faster in this 
case too).

Finally, now that REs are in PowerPro, I will look at extending 
caption lists so that
r=regex
can be used to match a caption and maybe
x=regex
to match an exe name.  Maybe even something like
z=regex to match exename\rcaption so that you can build some super-
duper RE that looks at both exename and caption if that is your cup of 
tea.  Ay thoughts on captions lists and REs?









------------------------ Yahoo! Groups Sponsor --------------------~--> 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to