re to match java function

mehta at mama.indstate.edu mehta at mama.indstate.edu
Tue Oct 19 22:33:20 EDT 1999


Hello,

I am trying to write re to match java fucntion.


scope = r'(public|private|protected)?[ \t]+'
modifier = r'(abstract|synchronized|statis|final)?[ \t]+'
returntype = r'(^[a-zA-Z0-9]+[ \t]+)'
name = returntype

funcre = what?


Sent via Deja.com http://www.deja.com/
Before you buy.




More information about the Python-list mailing list