--- In [email protected], "Ted Wall" <[EMAIL PROTECTED]> wrote:
>
> If you use regex.dll plugin, then you may find the following useful 
> for finding all of the @labels in a powerpro scripts file:
> 
> LOCAL file= INPUTPath++ ""
> IF(file=="")
>       QUIT
> 
> file= FILE.ReadAll(file)
> 
> LOCAL labels, CRLF= ESC(?"\r\n", ?"\")
> 
> ; finds all @Labels in file...
> 
> REGEX.Matchg( CRLF++ file, ;;+
> "("++ CRLF++ "@[A-Za-z][A-Za-z_0-9]*"++CRLF++ ")", ?"\1", "labels" )
> 
> SetNextDialogPos("","","","","top")
> 
> IF(ASSIGN("labels", PICKSTRING(labels, ;;+
> "Pick 1 or more labels ยป clip copy (OK without selecting=ALL)", ;;+
> 1)++"") !="")
> CLIP.Set(REPLACECHARS(labels, ESC(?"\r", ?"\"), CRLF), 1)
> 
> QUIT

regex.matchg(file.readall(?"file_path"),?"(?m)^@(\w+)",?"\1 ","labels")






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/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