Re: RegEx for Function Declarations

Ryan Heath <[email protected]> Wed, 30 Jan 2008 11:08:20 +0100
Newsgroups gmane.comp.windows.devel.dotnet.clr
Message-ID <[email protected]>
How about something like

((sum|max|min)\((\w+)\)|(count)\(\))

you may want to alter \w+ into something that matches your field names better.

// Ryan

On Jan 30, 2008 9:45 AM, Brady Kelly <[email protected]> wrote:
> I'd like to parse aggregate function declarations, as in Sum('x'), where x
> is a field name.  I'd love to break out a regex explorer and experiment, but
> I have a demo in three hours and would appreciate some assistance.  The set
> of functions is finite, i.e. Count(), Sum(x), Max(x), Min(x).
>
>
> ===================================
> This list is hosted by DevelopMentor(R)  http://www.develop.com
>
> View archives and manage your subscription(s) at http://discuss.develop.com
>

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com