[Pdx-pm] regular expression

Jeff Lavallee jeff at zeroclue.com
Sat Mar 13 17:25:05 CST 2004


You might use something like /keyword\s*([^(]+)\(/

That assumues that what your NeedThis_blah doesn't include a "(", of
course.


jeff


On Sat, 13 Mar 2004, darthsmily wrote:

> I need regular expression help.
> I'm sure I'm overlooking some small detail.
>
> I am working with this string for this example:
> keyword NeedThis_1(blah, bloh); keyword NeedThis_2(blah, bloh,foo, bar);
>
>
> I have tried
> "keyword.*\("
> but this returns:
> keyword NeedThis_1(blah, bloh); keyword NeedThis_2(
>
> What I want to return:
> NeedThis_1
> NeedThis_2
>
> Any Ideas?
>
> Thanks.
>
> _______________________________________________
> Pdx-pm-list mailing list
> Pdx-pm-list at mail.pm.org
> http://mail.pm.org/mailman/listinfo/pdx-pm-list
>



More information about the Pdx-pm-list mailing list