On Friday 09 January 2009 14:57:47 you wrote:
> ^.\w*
>
> Will match up to any non word character, in this case, the first slash.

Thank you Shawn,
     Now seeing as the manual has this for an example reg ex to find a 
matching product name out of a directory path:

Figure 4-17. Automatically detected product name.

# Product name definition. There are 2 options:
#
# - type is 'auto'. The product name will be
#   autodetected. Value must be a comma(,)-separated list of
#   regular expressions. Each regular expression must set the
#   unnamed variable $1 to the product name.
#
# This policy is ALWAYS enabled
product_name_definition => {
    type => 'auto',
    value => 'dir/prefix1/productMain_(.+?)/,dir2/(.+?)/,dir3/(?:trunk|tags|
branches)/(.+?)/'
    },

Figure 4-18. Repository structure with product names that can be automatically 
detected.

dir/prefix1/productMain_subproductA/trunk      
<snip>
dir2/productA_3-1/trunk
<snip>
dir3/trunk/productC
<etc...>

Figure 4-19. Automatically detected product names from Figure 4-18.

subproductA
<snip>
productA_3-1
<snip>
productC
<etc...>

---------
How do I add your expression into the original assignment statement:
                           value =>' ??'


again much thanks,

James L. Webb Jr.

>
>
> Shawn Jacobson
> Director of Information Services
> Lynxspring, Inc.
>
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of James Webb
> Sent: Thursday, January 08, 2009 5:00 PM
> To: [email protected]
> Subject: [scmbug-users] Reg. expression help in glue file.
>
> I was wondering if anyone could put together a regular expression that
> will
> find my product Names when they are the top level.
> e.g.:  SVN structure-> productName/mods/subprojects
>                                        productName/lib/
>                                        productName/tools
>
>                                        productName2/lib
>                                        productName2/misc
>
>                                        otherproduct/stuff
>                                        otherproduct/morestuff
>
> I just want my reg expression to match productName or productName2 or
> otherproduct, or any top level.
>
> It is probably easy but I am really uncomfortable with reg. expressions.
>
> thanks in advance,
>
> James L. Webb Jr.
> _______________________________________________
> scmbug-users mailing list
> [email protected]
> http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users
>
>
> The contents of this electronic mail message and any attachments are
> confidential, possibly privileged and intended for the addressee(s) only.
> Only the addressee(s) may read, disseminate, retain or otherwise use this
> message. If received in error, please immediately inform the sender and
> then delete this message without disclosing its contents to anyone.


_______________________________________________
scmbug-users mailing list
[email protected]
http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users

Reply via email to