> 
> Here is a working script that I believe does what you want.
>    local sString, output
>    sString="Hello [World]"
>    win.debug(regex.replaceg(sString,?"\[.*\]","","output"))
>    win.debug(output)


With some of the changes I have done for [] processing, it would be 
fairly easy for me to allow the syntax
sString[ ?"\[.*\]" ] = ""
to replace above call to replaceg (but it would still be calling 
regex under the covers).  Is this worth doing?  If so, should it 
call replaceg or replace as a default (or is their a way to indicate 
this in the RE?

Similarly
matched = sString[ ?"\[.*\]" ]

would return the matched string or "" if none, I guess.  Possibly 
need some global variable to reflect number of matches?  Any 
thoughts?







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/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