--- In [email protected], "brucexs" <[EMAIL PROTECTED]> wrote:
>
> 
> > 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.  

What A News! Now time to use/simulate multi-dimensional arrays :)

> 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).

When I was talking about returning arrays as the result, I was worried
about might-be cases where the resulting strings contain the same
character as the separator if not using some hard to recognize
separator like \x01 etc as the default. Now as we have a choice to set
separator freely, I suppose line/word function should be enough.

> 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?

Hmm... I've never thought about this possibility. It would be a great
addition!

Sean






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Everything you need is one click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/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