Hi,

I am trying to find a regexp to be used with re.Scanner that matches the 'package.module.member' syntax. More specifically I want to parse function strings like

numpy.sin(x*a+w)

and sort out variables/constants.

This one here works using re.match but fails when used with Scanner (due to the grouping () I guess).

r'((?=.*[a-zA-Z])(?=.+[\.]).+)[\(\+\-]+'

I highly appreciate your comments.

Regards, christian

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to